Skip to content

Commit cbe3be5

Browse files
committed
chore: workflow 설정
1 parent e0323a6 commit cbe3be5

File tree

8 files changed

+227
-0
lines changed

8 files changed

+227
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: 오류 수정
3+
about: 오류 설명 및 수정
4+
title: "[fix]"
5+
labels: "오류해결"
6+
assignees: ""
7+
---
8+
9+
## 🤔 오류 내용
10+
11+
에러로그 함께 입력
12+
<br>
13+
14+
## ⚠ 에러 캡쳐
15+
16+
<br>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: 기능 구현
3+
about: 기능 설명 및 구현
4+
title: "[feat]"
5+
labels: "기능구현"
6+
assignees: ""
7+
---
8+
9+
## ✨ 구현 할 기능
10+
11+
- [ ]
12+
- [ ]
13+
- [ ]
14+
15+
<br>
16+
17+
### 📕 레퍼런스
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: 리팩토링
3+
about: 클린코드, 디렉토리 구조 변경
4+
title: "[refactor]"
5+
labels: "리팩토링"
6+
assignees: ""
7+
---
8+
9+
## ✨ 리팩토링 할 부분
10+
11+
<br>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: 환경 설정
3+
about: 개발 환경 세팅
4+
title: "[chore]"
5+
labels: "환경설정"
6+
assignees: ""
7+
---
8+
9+
## ✨ 세팅할 환경
10+
11+
<br>
12+
13+
### 📕 레퍼런스
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: 테스트
3+
about: 테스트 코드 작성
4+
title: '[test] '
5+
labels: '테스트'
6+
assignees: ''
7+
---
8+
9+
## 🧪 테스트 내용
10+
11+
<br>
12+
13+
### 테스트 목적
14+
-
15+
16+
17+
### 기타 참고사항
18+
-

.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: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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: feat 라벨 할당
20+
if: contains(github.event.issue.title, 'feat')
21+
uses: actions-ecosystem/action-add-labels@v1
22+
with:
23+
labels: feat
24+
25+
- name: fix 라벨 할당
26+
if: contains(github.event.issue.title, 'fix')
27+
uses: actions-ecosystem/action-add-labels@v1
28+
with:
29+
labels: fix
30+
31+
- name: refactor 라벨 할당
32+
if: contains(github.event.issue.title, 'refactor')
33+
uses: actions-ecosystem/action-add-labels@v1
34+
with:
35+
labels: refactor
36+
37+
- name: chore 라벨 할당
38+
if: contains(github.event.issue.title, 'chore')
39+
uses: actions-ecosystem/action-add-labels@v1
40+
with:
41+
labels: chore
42+
43+
- name: test 라벨 할당
44+
if: contains(github.event.issue.title, 'test')
45+
uses: actions-ecosystem/action-add-labels@v1
46+
with:
47+
labels: test
48+
49+
# 이슈를 연 사람을 assignee로 자동 할당
50+
- name: 이슈 작성자를 assignee로 할당
51+
uses: actions-cool/issues-helper@v3
52+
with:
53+
actions: 'add-assignees'
54+
token: ${{ secrets.GITHUB_TOKEN }}
55+
issue-number: ${{ github.event.issue.number }}
56+
assignees: ${{ github.event.issue.user.login }}
57+
58+
# '프로젝트'의 'Backlog' 컬럼에 자동 추가
59+
- name : Github 프로젝트에 추가
60+
uses: jinhokim98/project-flow-add-issue-to-project@v1
61+
with:
62+
github_token: ${{ secrets.PROJECT_ACCESS_TOKEN }}
63+
project_owner: prgrms-web-devcourse-final-project
64+
project_number: 156
65+
target_column: 'Backlog'

.github/workflows/autoPR.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# 워크플로우 이름
2+
name: PR 자동화
3+
4+
# 실행 조건: main 브랜치로 PR이 열렸을 때
5+
on:
6+
pull_request:
7+
branches: [ main, develop ]
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: li-sumup/[email protected]
23+
24+
25+
# PR 제목에 따라 Label 자동 할당
26+
- name: feat 라벨 할당
27+
if: contains(github.event.pull_request.title, 'feat')
28+
uses: actions-ecosystem/action-add-labels@v1
29+
with:
30+
labels: feat
31+
32+
- name: fix 라벨 할당
33+
if: contains(github.event.pull_request.title, 'fix')
34+
uses: actions-ecosystem/action-add-labels@v1
35+
with:
36+
labels: fix
37+
38+
- name: refactor 라벨 할당
39+
if: contains(github.event.pull_request.title, 'refactor')
40+
uses: actions-ecosystem/action-add-labels@v1
41+
with:
42+
labels: refactor
43+
44+
- name: chore 라벨 할당
45+
if: contains(github.event.pull_request.title, 'chore')
46+
uses: actions-ecosystem/action-add-labels@v1
47+
with:
48+
labels: chore
49+
50+
- name: test 라벨 할당
51+
if: contains(github.event.pull_request.title, 'test')
52+
uses: actions-ecosystem/action-add-labels@v1
53+
with:
54+
labels: test
55+
56+
57+
# '프로젝트'에 등록
58+
- name: GitHub 프로젝트에 추가
59+
uses: actions/[email protected]
60+
with:
61+
project-url: "https://github.com/orgs/prgrms-web-devcourse-final-project/projects/156"
62+
github-token: ${{ secrets.PROJECT_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)