ci: update labels on merged PRs (#183)

Co-authored-by: Silvan Mosberger <github@infinisil.com>
This commit is contained in:
asymmetric 2024-11-25 18:44:50 +01:00 committed by GitHub
parent f557e0736e
commit 25c3f52463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

22
.github/workflows/update-pr-labels.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Update PR labels
on:
pull_request:
types: [closed]
jobs:
after-merge:
if: |
github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'status: FCP')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Update labels on accepted RFCs
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
gh pr edit $PR_NUMBER --remove-label "status: FCP" --add-label "status: accepted"