From 10bd7da5dbc1c0dada7bc0b72375ad9cd3fd9be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Sat, 31 Jan 2026 14:34:17 +0100 Subject: [PATCH] feat: Add automerge workflow for labeled PRs (#88) ## Summary - Adds a new GitHub Actions workflow that enables auto-merge when the "Automerge" label is added to a PR - Uses `gh pr merge --auto --squash` to squash-merge once all required CI checks pass ## Test plan - [ ] Add the "Automerge" label to this PR to verify the workflow triggers - [ ] Confirm the PR is auto-merged after CI passes --- .github/workflows/automerge.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/automerge.yml diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 00000000..caef9168 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,19 @@ +name: Automerge + +on: + pull_request: + types: [labeled] + +jobs: + automerge: + if: github.event.label.name == 'Automerge' + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Enable auto-merge + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}