-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (51 loc) · 1.8 KB
/
Copy pathautoPR.yml
File metadata and controls
60 lines (51 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 워크플로우 이름
name: PR 자동화
# 실행 조건: develop 브랜치로 PR이 열렸을 때
on:
pull_request:
branches: [ develop ]
types: [ opened ]
# 실행할 작업
jobs:
automate-pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
contents: read
steps:
# PR 작성자를 Assignee로 자동 할당
- name: PR 작성자를 담당자로 할당
uses: li-sumup/actions-assigner@v1.0.2
# PR 제목에 따라 Label 자동 할당
- name: design 라벨 할당
if: contains(github.event.pull_request.title, 'design')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: design
- name: feat 라벨 할당
if: contains(github.event.pull_request.title, 'feat')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: feat
- name: fix 라벨 할당
if: contains(github.event.pull_request.title, 'fix')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: fix
- name: refactor 라벨 할당
if: contains(github.event.pull_request.title, 'refactor')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: refactor
- name: chore 라벨 할당
if: contains(github.event.pull_request.title, 'chore')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: chore
# 프로젝트에 등록 (프로젝트 생성 후 수정 필요)
- name: GitHub 프로젝트에 추가
uses: actions/add-to-project@v1.0.2
with:
project-url: "https://github.com/orgs/prgrms-web-devcourse-final-project/projects/154"
github-token: ${{ secrets.PROJECT_ACCESS_TOKEN }}