💫 Toolkit to help you get started with SDD or any other process!
fix(scripts): prevent octal interpretation in feature number parsing
Joseph Mearmanb4e1c0781700
diff --git a/scripts/bash/create-new-feature.sh b/scripts/bash/create-new-feature.shindex fe6d73999..640ba73cb 100644--- a/scripts/bash/create-new-feature.sh+++ b/scripts/bash/create-new-feature.sh@@ -246,7 +246,8 @@ if [ -z "$BRANCH_NUMBER" ]; thenfifi-FEATURE_NUM=$(printf "%03d" "$BRANCH_NUMBER")+# Force base-10 interpretation to prevent octal conversion (027 → 23)+FEATURE_NUM=$(printf "%03d" "$((10#$BRANCH_NUMBER))")BRANCH_NAME="${FEATURE_NUM}-${BRANCH_SUFFIX}"# GitHub enforces a 244-byte limit on branch names