diff --git a/.github/workflows/auto-label-ballot.yml b/.github/workflows/auto-label-ballot.yml new file mode 100644 index 0000000..0d369cc --- /dev/null +++ b/.github/workflows/auto-label-ballot.yml @@ -0,0 +1,18 @@ +name: Auto-label ballot PRs + +on: + pull_request: + types: [opened, reopened] + +jobs: + label: + if: startsWith(github.head_ref, 'ballot/') + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add OMG Ballot label + run: gh pr edit "$PR_NUMBER" --add-label "OMG Ballot" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.pull_request.number }}