Skip to content

Commit bf8d139

Browse files
committed
Init Project
1 parent 4070115 commit bf8d139

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/auto-branch.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)