-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (55 loc) · 2.26 KB
/
automate_labelling.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Label automation
on:
project_card:
types: [moved, created]
jobs:
label_automation:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Automate labelling in Bucket column
if: github.event.project_card.column_id == '5965967'
uses: andymckay/labeler@master
with:
add-labels: "bucket"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Automate labelling in Ready column
if: github.event.project_card.column_id == '5338726'
uses: andymckay/labeler@master
with:
add-labels: "ready"
remove-labels: "in progress, under review, review, impeded, bucket, proposal"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if rework label needs to be added
if: github.event.changes.column_id.from == '5338737' && github.event.project_card.column_id == '5338726'
uses: andymckay/labeler@master
with:
add-labels: "rework"
- name: Automate labelling in In Progress column
if: github.event.project_card.column_id == '5338729'
uses: andymckay/labeler@master
with:
add-labels: "in progress"
remove-labels: "ready, impeded, review, under review, bucket"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: l Automate labelling in Impeded column
if: github.event.project_card.column_id == '5338730'
uses: andymckay/labeler@master
with:
add-labels: "Impeded"
remove-labels: "in progress, ready, review, bucket"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Automate labelling in Review column
if: github.event.project_card.column_id == '5338737'
uses: andymckay/labeler@master
with:
add-labels: "Review"
remove-labels: "in progress, ready, impeded, bucket"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Automate labelling in Review Complete column
if: github.event.project_card.column_id == '19223670'
uses: andymckay/labeler@master
with:
remove-labels: "in progress, ready, impeded, review, under review, bucket"
repo-token: ${{ secrets.GITHUB_TOKEN }}