Skip to content

Commit 25c3f52

Browse files
ci: update labels on merged PRs (#183)
Co-authored-by: Silvan Mosberger <[email protected]>
1 parent f557e07 commit 25c3f52

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Update PR labels
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
after-merge:
9+
if: |
10+
github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'status: FCP')
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
15+
steps:
16+
- name: Update labels on accepted RFCs
17+
env:
18+
GH_TOKEN: ${{ github.token }}
19+
GH_REPO: ${{ github.repository }}
20+
PR_NUMBER: ${{ github.event.pull_request.number }}
21+
run: |
22+
gh pr edit $PR_NUMBER --remove-label "status: FCP" --add-label "status: accepted"

0 commit comments

Comments
 (0)