-
Notifications
You must be signed in to change notification settings - Fork 55
35 lines (33 loc) · 958 Bytes
/
Copy pathclosed_pull_request.yml
File metadata and controls
35 lines (33 loc) · 958 Bytes
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
name: "Closed Pull Request Labeler"
on:
pull_request_target:
types:
- closed
env:
GH_TOKEN: ${{ github.token }}
VERBOSE: ${{ vars.VERBOSE }}
jobs:
merged:
if: github.event.pull_request.merged == true
environment: housekeeping
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
perl .github/bin/labeler ${{ github.event.number }} remove
perl .github/bin/labeler ${{ github.event.number }} add 'Status: accepted'
rejected:
if: github.event.pull_request.merged == false
environment: housekeeping
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
perl .github/bin/labeler ${{ github.event.number }} remove
perl .github/bin/labeler ${{ github.event.number }} add 'Status: rejected'