Skip to content

Commit f13b880

Browse files
authored
Merge pull request #5 from prgrms-web-devcourse-final-project/seungwook/chore#1
[chore] 코드래빗 관련 이슈 자동할당 & pr 자동화 설정#1
2 parents 591579f + 8bad8d4 commit f13b880

File tree

4 files changed

+155
-0
lines changed

4 files changed

+155
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## 📢 기능 설명
2+
3+
필요시 실행결과 스크린샷 첨부
4+
<br>
5+
6+
## 연결된 issue
7+
8+
연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요. <br>
9+
close #{이슈넘버}
10+
<br>
11+
<br>
12+
13+
## 🩷 Approve 하기 전 확인해주세요!
14+
15+
- [ ] 리뷰어가 확인해줬으면 하는 사항 적어주세요.
16+
- [ ]
17+
18+
<br>
19+
20+
## ✅ 체크리스트
21+
22+
- [ ] PR 제목 규칙 잘 지켰는가?
23+
- [ ] 추가/수정사항을 설명하였는가?
24+
- [ ] 이슈넘버를 적었는가?
25+
- [ ] Approve 하기 전 확인 사항 체크했는가?

.github/workflows/autoIssue.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# 워크플로우 이름
2+
name: 이슈 자동화
3+
4+
# 실행 조건: 이슈가 열렸을 때
5+
on:
6+
issues:
7+
types: [ opened ]
8+
9+
# 실행할 작업
10+
jobs:
11+
automate-issue:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
contents: read
16+
17+
steps:
18+
# 이슈 제목에 따라 Label 자동 할당 (예시)
19+
- name: design 라벨 할당
20+
if: contains(github.event.issue.title, 'design')
21+
uses: actions-ecosystem/action-add-labels@v1
22+
with:
23+
labels: design
24+
25+
- name: feat 라벨 할당
26+
if: contains(github.event.issue.title, 'feat')
27+
uses: actions-ecosystem/action-add-labels@v1
28+
with:
29+
labels: feat
30+
31+
- name: fix 라벨 할당
32+
if: contains(github.event.issue.title, 'fix')
33+
uses: actions-ecosystem/action-add-labels@v1
34+
with:
35+
labels: fix
36+
37+
- name: refactor 라벨 할당
38+
if: contains(github.event.issue.title, 'refactor')
39+
uses: actions-ecosystem/action-add-labels@v1
40+
with:
41+
labels: refactor
42+
43+
- name: chore 라벨 할당
44+
if: contains(github.event.issue.title, 'chore')
45+
uses: actions-ecosystem/action-add-labels@v1
46+
with:
47+
labels: chore
48+
49+
50+
# GitHub 프로젝트의 'Backlog' 컬럼에 자동 추가
51+
- name : Github 프로젝트에 추가
52+
uses: jinhokim98/project-flow-add-issue-to-project@v1
53+
with:
54+
github_token: ${{ secrets.PROJECT_ACCESS_TOKEN }}
55+
project_owner: prgrms-web-devcourse-final-project
56+
project_number: 145
57+
target_column: 'Backlog'

.github/workflows/autoPR.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# 워크플로우 이름
2+
name: PR 자동화
3+
4+
# 실행 조건: main, dev/** 브랜치로 PR이 열렸을 때
5+
on:
6+
pull_request:
7+
branches: [ main, dev, 'dev/**' ]
8+
types: [ opened ]
9+
10+
# 실행할 작업
11+
jobs:
12+
automate-pr:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
16+
issues: write
17+
contents: read
18+
19+
steps:
20+
# PR 작성자를 Assignee로 자동 할당
21+
- name: PR 작성자를 담당자로 할당
22+
uses: actions-ecosystem/action-add-assignees@v1
23+
with:
24+
github_token: ${{ secrets.PROJECT_ACCESS_TOKEN }}
25+
assignees: ${{ github.event.pull_request.user.login }}
26+
27+
28+
# PR 제목에 따라 Label 자동 할당 (예시)
29+
# - name: 제목에 'feat'가 있으면 'feature' 라벨 추가
30+
# if: contains(github.event.pull_request.title, 'feat')
31+
# uses: actions-ecosystem/action-add-labels@v1
32+
# with:
33+
# labels: feature
34+
35+
36+
# PR 제목에 따라 Label 자동 할당
37+
- name: design 라벨 할당
38+
if: contains(github.event.pull_request.title, 'design')
39+
uses: actions-ecosystem/action-add-labels@v1
40+
with:
41+
labels: design
42+
43+
- name: feat 라벨 할당
44+
if: contains(github.event.pull_request.title, 'feat')
45+
uses: actions-ecosystem/action-add-labels@v1
46+
with:
47+
labels: feat
48+
49+
- name: fix 라벨 할당
50+
if: contains(github.event.pull_request.title, 'fix')
51+
uses: actions-ecosystem/action-add-labels@v1
52+
with:
53+
labels: fix
54+
55+
- name: refactor 라벨 할당
56+
if: contains(github.event.pull_request.title, 'refactor')
57+
uses: actions-ecosystem/action-add-labels@v1
58+
with:
59+
labels: refactor
60+
61+
- name: chore 라벨 할당
62+
if: contains(github.event.pull_request.title, 'chore')
63+
uses: actions-ecosystem/action-add-labels@v1
64+
with:
65+
labels: chore
66+
67+
68+
# '연습용 프로젝트'에 등록
69+
- name: GitHub 프로젝트에 추가
70+
uses: actions/[email protected]
71+
with:
72+
project-url: "https://github.com/orgs/prgrms-web-devcourse-final-project/projects/145"
73+
github-token: ${{ secrets.PROJECT_ACCESS_TOKEN }}

db_dev.mv.db

16 KB
Binary file not shown.

0 commit comments

Comments
 (0)