Repository navigation
docs(ci): record why an armed auto-merge PR stalls at BEHIND - #324
Merged
Merged
Conversation
Not a bug, but it reads like one, and this repository has already spent five diagnoses on this workflow — a sixth symptom that looks the same as the first five is worth naming before someone chases it. Branch protection on `main` sets `strict: true`, so a PR whose base has moved since its last push reports mergeStateStatus BEHIND, and `gh pr merge --auto` will not merge it. It waits indefinitely and silently, because BEHIND is not a failing check and nothing surfaces it: the PR shows every check green and simply does not merge. With a queue of armed PRs this serializes them — the first merges, every other becomes BEHIND, and each needs a branch update before its turn. Observed while landing the vite overrides: #315 merged, #320 merged behind it, and the next armed PR sat green-and-BEHIND until `gh pr update-branch` was run by hand. `allow_update_branch` is false at the repository level, which is what would otherwise offer the button in the UI. Comment only; no behaviour change.
scttfrdmn
enabled auto-merge (squash)
August 3, 2026 21:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comment-only change to
.github/workflows/dependabot-automerge.yml. No behaviour change.Branch protection on
mainhasstrict: true(require branches up to date before merging), so a PR whose base has moved since its last push goes tomergeStateStatus: BEHINDandgh pr merge --autowill not merge it. It waits indefinitely and silently —BEHINDis not a failing check, so the PR shows every check green and simply doesn't merge.With a queue of armed PRs this serializes them: the first merges, every other one becomes
BEHIND, and each needs a branch update before its turn. Observed directly while landing #318 — #315 merged, #320 merged behind it, and the next armed PR sat green-and-BEHINDuntilgh pr update-branchwas run by hand.Worth a comment rather than nothing because this workflow has already absorbed five separate diagnoses, all of which presented as "armed PRs aren't merging." A sixth symptom with the same surface appearance is exactly the thing to label, so the next person checks
mergeStateStatusbefore re-litigating the five documented causes.Also notes that
allow_update_branchis false at the repository level, which is what would otherwise surface the update button in the UI, and that the queue should be expected to drain a few PRs at a time rather than all at once.