We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4729ee8 commit 839bfcfCopy full SHA for 839bfcf
.github/workflows/auto-branch.yml
@@ -24,12 +24,15 @@ jobs:
24
- 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
- branch_name="issue/${issue_number}-${safe_title}"
+ issue_title="${{ github.event.issue.title }}"
+
+ # 콜론(:) 앞 단어를 prefix로 추출
+ prefix=$(echo "$issue_title" | cut -d':' -f1 | tr -d '[:space:]')
31
32
+ branch_name="${prefix}/${issue_number}"
33
34
echo "📌 Creating branch: $branch_name from origin/main"
35
36
git fetch origin main
37
git checkout -b "$branch_name" origin/main
38
git push origin "$branch_name"
0 commit comments