mirror of
https://github.com/NixOS/rfcs.git
synced 2025-11-08 11:36:12 +01:00
ci: update labels on merged PRs (#183)
Co-authored-by: Silvan Mosberger <github@infinisil.com>
This commit is contained in:
parent
f557e0736e
commit
25c3f52463
1 changed files with 22 additions and 0 deletions
22
.github/workflows/update-pr-labels.yml
vendored
Normal file
22
.github/workflows/update-pr-labels.yml
vendored
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue