-
-
Notifications
You must be signed in to change notification settings - Fork 7
79 lines (66 loc) · 2.46 KB
/
label-remove-outdated.yml
File metadata and controls
79 lines (66 loc) · 2.46 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Remove outdated labels
on:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
issues:
types:
- closed
pull_request_target:
types:
- closed
- review_requested
jobs:
on-issue-close:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event.issue.state == 'closed'
name: Clean up labels on issue close
steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
Status: awaiting feedback
Status: close candidate
Status: help wanted
Status: needs investigation
Status: triage
on-pr-review-request:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event.action == 'review_requested'
name: "Clean up labels on PR (re-)review request"
steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
Status: awaiting feedback
on-pr-merge:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event.pull_request.merged == true
name: Clean up labels on PR merge
steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
Status: awaiting feedback
Status: close candidate
Status: has merge conflict
Status: help wanted
Status: needs investigation
Status: triage
Status: wait for PHPCS 4.0.0 release
on-pr-close:
runs-on: ubuntu-latest
# yamllint disable-line rule:line-length
if: github.repository_owner == 'PHPCSStandards' && github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == false
name: Clean up labels on PR close
steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
Status: awaiting feedback
Status: close candidate
Status: help wanted
Status: needs investigation
Status: triage