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
This commit is contained in:
Víctor Falcón 2026-01-31 14:34:17 +01:00 committed by GitHub
parent cfa5bfd728
commit 10bd7da5db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

19
.github/workflows/automerge.yml vendored Normal file
View File

@ -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 }}