From 2e67da89fa13e19c5464e8d3a6ab7d238828e622 Mon Sep 17 00:00:00 2001 From: Jacobus Geluk Date: Wed, 11 Feb 2026 17:38:41 +0000 Subject: [PATCH] ci: auto-label PRs from ballot/* branches with "OMG Ballot" Co-Authored-By: Claude Opus 4.6 --- .github/workflows/auto-label-ballot.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/auto-label-ballot.yml 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 }}