From 1e8e01f8e3cf194ee2be9b79c882b3ed484dac27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Mon, 23 Mar 2026 01:18:54 +0100 Subject: [PATCH] Add all recommended triggers to automerge action Use the full set of triggers from pascalgn/automerge-action docs: pull_request (labeled, synchronize, opened, etc), pull_request_review, check_suite, and status events. Replaces workflow_run trigger which wasn't firing reliably after the label was added before CI completed. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/automerge.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 94cf8b7..54da42a 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -1,11 +1,23 @@ name: Automerge on: - workflow_run: - workflows: ["CI"] - types: [completed] pull_request: - types: [labeled] + types: + - labeled + - unlabeled + - synchronize + - opened + - edited + - ready_for_review + - reopened + - unlocked + pull_request_review: + types: + - submitted + check_suite: + types: + - completed + status: {} env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -14,9 +26,6 @@ jobs: automerge: name: Automerge PR runs-on: ubuntu-latest - if: > - github.event_name == 'pull_request' || - (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') permissions: contents: write pull-requests: write