Skip to content

fix: add Dependabot PRs directly to merge queue instead of enabling auto-merge#64

Merged
pbertsch merged 1 commit intomainfrom
fix/automerge-use-merge-queue
Apr 2, 2026
Merged

fix: add Dependabot PRs directly to merge queue instead of enabling auto-merge#64
pbertsch merged 1 commit intomainfrom
fix/automerge-use-merge-queue

Conversation

@pbertsch
Copy link
Copy Markdown
Contributor

@pbertsch pbertsch commented Apr 2, 2026

Problem

gh pr merge --auto --squash enables GitHub's built-in "auto-merge" feature, which shows as "This pull request will be added to the merge queue when all requirements are met" — but it never actually queues the PR. The user had to manually disable auto-merge and click "Merge when ready" to get PRs into the queue.

Fix

  • gh pr merge --squash (without --auto) is the CLI equivalent of clicking "Merge when ready" — it adds the PR directly to the merge queue
  • Updated the skip check from autoMergeRequest != null to mergeStateStatus since we're no longer using the auto-merge flag
  • Updated workflow name and comments to reflect the correct behavior

Test plan

  • Merge this PR
  • Trigger workflow manually via workflow_dispatch
  • Verify next eligible Dependabot PR goes straight into the merge queue (not into "auto-merge" limbo)

…of --auto

--auto enables GitHub's 'auto-merge' feature which waits indefinitely for
conditions rather than adding the PR to the merge queue. --squash is the
CLI equivalent of clicking 'Merge when ready' in the GitHub UI.
@pbertsch pbertsch requested a review from a team as a code owner April 2, 2026 16:04
@pbertsch pbertsch merged commit 524480b into main Apr 2, 2026
14 checks passed
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