From cd18436187ba9d2eb692aed97d31da2f02f83ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 22 Mar 2026 22:53:08 +0100 Subject: [PATCH] Add automerge GitHub Action (#5) PRs labeled 'automerge' will squash-merge when all checks pass. Uses pascalgn/automerge-action. No branch protection needed. Co-authored-by: Claude Opus 4.6 (1M context) --- .github/workflows/automerge.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000..1273139 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,29 @@ +name: Automerge + +on: + check_suite: + types: [completed] + pull_request: + types: [labeled] + +jobs: + automerge: + name: Automerge PR + runs-on: ubuntu-latest + if: > + github.event_name == 'pull_request' || + (github.event_name == 'check_suite' && github.event.check_suite.conclusion == 'success') + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v6 + + - name: Automerge + uses: pascalgn/automerge-action@v0.16.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MERGE_LABELS: "automerge" + MERGE_METHOD: "squash" + MERGE_DELETE_BRANCH: "true" + UPDATE_METHOD: "rebase"