Skip to content

Commit

Permalink
ci: update labels on merged PRs (#183)
Browse files Browse the repository at this point in the history
Co-authored-by: Silvan Mosberger <[email protected]>
  • Loading branch information
asymmetric and infinisil authored Nov 25, 2024
1 parent f557e07 commit 25c3f52
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/update-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 25c3f52

Please sign in to comment.