pass --squash to gh pr merge in dependabot auto-merge - #191
Merged
Conversation
main had a merge queue until 2026-07-30 14:09 (last merge_group run). gh pr merge skips the merge-strategy requirement only when the base branch requires a merge queue (shouldAddToMergeQueue in pkg/cmd/pr/merge/merge.go); otherwise a non-interactive call without --merge/--rebase/--squash is a flag error. Once the queue was disabled the step started failing at 14:20, so auto-merge was never enabled and bump PRs piled up. The repo allows squash only. If a merge queue is ever re-enabled, gh just warns that the queue sets the strategy, so this is safe either way.
gauron99
force-pushed
the
push-slpsnxsvlktx
branch
from
August 4, 2026 11:23
0736dce to
e8c6bc2
Compare
gauron99
enabled auto-merge (squash)
August 4, 2026 11:59
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.
mainhad a merge queue until 2026-07-30 14:09 (the lastmerge_groupworkflow run).gh pr mergeskips the merge-strategy requirement only when the base branch requires a merge queue (shouldAddToMergeQueueinpkg/cmd/pr/merge/merge.go); otherwise a non-interactive call without--merge/--rebase/--squashis a flag error.Once the queue was disabled the step started failing at 14:20, 11 minutes later, with:
The job failed on every dependabot PR from then on, so auto-merge was never enabled and bump PRs piled up (177, 185, 188, 189, 190 still open with tests green).
The repo allows squash only, so
--squashis the only valid method. If a merge queue is ever re-enabled,ghjust warns that the queue sets the strategy, so this is safe either way.