Skip to content

Commit

Permalink
�� Docs(#6): Issue �� PR 蹂듭\� ��
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetree7878 committed Sep 17, 2024
1 parent a04e822 commit e3aa7d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 51 deletions.
8 changes: 4 additions & 4 deletions .github/issue-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ gitSafeReplacementChar: '_'
autoCloseIssue: true
commentMessage: 'Branch ${branchName} created for issue: ${issue.title}'

copyIssueLabelsToPR: true
copyIssueAssigneeToPR: true
copyIssueProjectsToPR: true

branches:
- label: 🌏 Deploy
prefix: deploy/
Expand All @@ -26,7 +30,3 @@ branches:
prefix: publish/
- label: '*'
prefix: issue/

copyIssueLabelsToPR: true
copyIssueAssigneeToPR: true
copyIssueProjectsToPR: true
2 changes: 1 addition & 1 deletion .github/workflows/create-issue-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
issue_comment:
types: [created]
pull_request:
types: [opened, closed]
types: [closed]

jobs:
create_issue_branch_job:
Expand Down
46 changes: 0 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,49 +64,3 @@
| 📝 Modify | 기능, 코드 수정 |
| 🔨 Refactor | 코드 리팩토링 |
| 🎨 Publish | 마크업 & 스타일링 |

## 브랜치 전략

- `feature/#이슈 번호/이슈 제목`
- 이슈 생성 시 자동 브랜치 생성

```yml
#issue-branch.yml
branchName: '#${issue.number}/${issue.title}'
gitSafeReplacementChar: '_'
autoCloseIssue: true
commentMessage: 'Branch ${branchName} created for issue: ${issue.title}'

branches:
- label: 🌏 Deploy
prefix: deploy/
- label: ⚙ Setting
prefix: setting/

...

- label: '*'
prefix: issue/

copyIssueLabelsToPR: true
copyIssueAssigneeToPR: true
copyIssueProjectsToPR: true

# workflow/create_branch_for_issue.yml
on:
issues:
types: [assigned]
issue_comment:
types: [created]
pull_request:
types: [opened, closed]

jobs:
create_issue_branch_job:
runs-on: ubuntu-latest
steps:
- name: Create Issue Branch
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

0 comments on commit e3aa7d3

Please sign in to comment.