-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (33 loc) · 1.02 KB
/
label.yml
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
name: "PR Labeler"
on:
pull_request_review:
types: [submitted]
pull_request:
types: [review_requested]
jobs:
created:
if: github.event.review.state != 'changes_requested' && github.event.review.state != 'approved'
runs-on: ubuntu-latest
steps:
- name: Add basic label
uses: andymckay/labeler@1.0.4
with:
add-labels: 'pr: needs review :pray:'
approved:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Add approve labels
uses: andymckay/labeler@1.0.4
with:
add-labels: 'pr: fix & ship :ship:'
remove-labels: 'pr: needs review :pray:, pr: needs work :hammer_and_wrench:'
needs-work:
if: github.event.review.state == 'changes_requested'
runs-on: ubuntu-latest
steps:
- name: Add needs-work labels
uses: andymckay/labeler@1.0.4
with:
add-labels: 'pr: needs work :hammer_and_wrench:'
remove-labels: 'pr: fix & ship :ship:, pr: needs review :pray:'