Skip to content

fix(ci): drop --squash from dependabot auto-merge so the queue enrolls it#496

Merged
githubrobbi merged 1 commit into
mainfrom
fix/automerge-queue-enrollment
Jun 29, 2026
Merged

fix(ci): drop --squash from dependabot auto-merge so the queue enrolls it#496
githubrobbi merged 1 commit into
mainfrom
fix/automerge-queue-enrollment

Conversation

@githubrobbi

Copy link
Copy Markdown
Collaborator

Why

main uses a merge queue, which owns the merge strategy. dependabot-auto-merge.yml ran gh pr merge --auto --squash, but passing a method on a queue repo is silently rejected ("the merge strategy for main is set by the merge queue") — it arms auto-merge but never enrolls the PR in the queue.

Observed on #494: green required checks, up-to-date branch, mergeStateStatus: CLEAN — yet the merge queue stayed empty and the PR sat stuck until auto-merge was re-armed with no method flag.

Fix

gh pr merge --auto --squashgh pr merge --auto (no method; the queue owns the squash). The step already fires on synchronize, so with the method dropped it now self-heals enrollment after an Update-branch instead of needing a manual re-arm. Comment updated to document the merge-queue contract.

Paired with a ruleset change (applied separately): main no longer requires branches to be up-to-date before merging — that flag is redundant with the merge queue (which rebuilds against latest main at merge time) and was what made open PRs go stale when main moved.

🤖 Generated with Claude Code

…lls it

`main` uses a merge queue, which owns the merge strategy. `gh pr merge --auto
--squash` is silently rejected ("the merge strategy for main is set by the merge
queue"), arming auto-merge but never enrolling the PR in the queue — so a PR
sits CLEAN but stuck (observed on #494: green checks, up-to-date branch, yet the
queue stayed empty until auto-merge was re-armed with no method flag).

Use `gh pr merge --auto` (no method) so the queue owns the squash and enrolls
the PR. The step already fires on `synchronize`, so with the method dropped it
now self-heals enrollment after an Update-branch instead of needing a manual
re-arm. Comment updated to explain the merge-queue contract.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@githubrobbi githubrobbi enabled auto-merge June 29, 2026 23:40
@githubrobbi githubrobbi added this pull request to the merge queue Jun 29, 2026
Merged via the queue into main with commit 5265c9f Jun 29, 2026
20 checks passed
@githubrobbi githubrobbi deleted the fix/automerge-queue-enrollment branch June 29, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant