From 278dc541ef4b10f7c06054610c7ab25cdb32a354 Mon Sep 17 00:00:00 2001 From: Sunny Purewal Date: Tue, 19 May 2026 15:18:16 -0400 Subject: [PATCH] reinstate set-automerge workflow for autonomous bots --- .github/workflows/set-automerge.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/set-automerge.yml b/.github/workflows/set-automerge.yml index 6c5fc702..9ed80b21 100644 --- a/.github/workflows/set-automerge.yml +++ b/.github/workflows/set-automerge.yml @@ -1,4 +1,5 @@ -# Enable auto-merge (squash) on every newly opened PR. +# Enable auto-merge (squash) for bot-authored PRs that are labeled for the +# autonomous merge flow. # # Self-contained inlined version. The same file is replicated across all # active RiddimSoftware repos so each repo enables auto-merge independently @@ -24,7 +25,7 @@ jobs: name: Set auto-merge runs-on: ubuntu-latest timeout-minutes: 5 - if: ${{ !github.event.pull_request.draft }} + if: ${{ !github.event.pull_request.draft && github.event.pull_request.user.type == 'Bot' && contains(github.event.pull_request.labels.*.name, 'autonomous') }} steps: - name: Generate developer-bot token id: dev-token