diff --git a/scripts/bash/create-new-feature.sh b/scripts/bash/create-new-feature.sh index fe6d7399..640ba73c 100644 --- a/scripts/bash/create-new-feature.sh +++ b/scripts/bash/create-new-feature.sh @@ -246,7 +246,8 @@ if [ -z "$BRANCH_NUMBER" ]; then fi fi -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