mirror of
https://github.com/NixOS/rfcs.git
synced 2025-11-08 19:46:12 +01:00
ci: add workflow for labeling new RFCs
This commit is contained in:
parent
0df042d497
commit
93c4719e28
1 changed files with 22 additions and 0 deletions
22
.github/workflows/new-rfc.yml
vendored
Normal file
22
.github/workflows/new-rfc.yml
vendored
Normal 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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue