Update scripts/bash/create-new-feature.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Joseph Mearman
2025-11-25 13:54:29 +00:00
committed by GitHub
parent b4e1c07817
commit dadda123f0

View File

@@ -246,7 +246,7 @@ if [ -z "$BRANCH_NUMBER" ]; then
fi
fi
# Force base-10 interpretation to prevent octal conversion (027 → 23)
# Force base-10 interpretation to prevent octal conversion (e.g., 010 → 8 in octal, but should be 10 in decimal)
FEATURE_NUM=$(printf "%03d" "$((10#$BRANCH_NUMBER))")
BRANCH_NAME="${FEATURE_NUM}-${BRANCH_SUFFIX}"