ci: add workflow for labeling new RFCs

This commit is contained in:
Lorenzo Manacorda 2024-11-25 21:19:16 +01:00
parent 0df042d497
commit 93c4719e28

22
.github/workflows/new-rfc.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: New RFC
on:
pull_request:
types: [opened]
jobs:
label-new-rfc:
if: github.event.pull_request.head.repo.fork == true && github.event.pull_request.title matches '^\[RFC \d+\].*$'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Label new RFC
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
gh pr edit $PR_NUMBER --add-label "status: open-for-nominations"