File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,14 @@ jobs:
2222 git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
2323
2424 - name : Create branch from issue
25- run |
26- issue_number=${{ github.event.issue.number }}
27- issue_title=${{ github.event.issue.title }}
28-
29- safe_title=$(echo "$issue_title" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | tr -cd '[:alnum:]-')
30-
31- branch_name="issue/${issue_number}-${safe_title}"
32-
33- echo "📌 Creating branch : $branch_name from origin/main"
34-
35- git fetch origin main
36- git checkout -b "$branch_name" origin/main
37- git push origin "$branch_name"
25+ run : |
26+ issue_number=${{ github.event.issue.number }}
27+ issue_title=${{ github.event.issue.title }}
28+
29+ safe_title=$(echo "$issue_title" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | tr -cd '[:alnum:]-')
30+ branch_name="issue/${issue_number}-${safe_title}"
31+ echo "📌 Creating branch: $branch_name from origin/main"
32+
33+ git fetch origin main
34+ git checkout -b "$branch_name" origin/main
35+ git push origin "$branch_name"
You can’t perform that action at this time.
0 commit comments