Skip to content

Commit

Permalink
Fix #1426 ALLOWED_BRANCH_NAME_CHARS in auto issue branch creation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Dec 28, 2024
1 parent de81e2b commit 150fa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/git-auto-issue-branch-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
ALLOWED_BRANCH_NAME_CHARS='[^a-zA-Z0-9-]'
# Loop through each character in the branch name, replacing any not allowed characer with a hyphen '-'
while [[ $ISSUE_BRANCH_NAME =~ $ALLOWED_BRANCH_NAME_CHARS ]]; do
ISSUE_BRANCH_NAME=`echo $ISSUE_BRANCH_NAME | sed -r "s/($ALLOWED_BRANCH_NAME_CHARS)/-/g" | sed 's/--/-/'`
ISSUE_BRANCH_NAME=`echo $ISSUE_BRANCH_NAME | sed -r "s/($ALLOWED_BRANCH_NAME_CHARS)/-/g" | sed 's/--/-/g'`
done
echo $ISSUE_BRANCH_NAME >> $GITHUB_ENV
Expand Down

0 comments on commit 150fa8a

Please sign in to comment.