Repository navigation
fix(merge): support merge queue targets - #59
Merged
Merged
Conversation
This was referenced Sep 2, 2026
1 task
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.
Why
Merging a pull request into a branch with a merge queue fails because ghui always passes
--delete-branch. GitHub CLI rejects that flag for queue targets, including explicit admin merges.Closes #57.
What Changes
Requested merge queue for #42.--admin, optimistic completion, and theAdmin mergednotice. The modal explains the queue bypass.Queue detection reads
PullRequest.mergeQueuealongside the existing admin-permission query. This is the queue for the PR's base branch, not whether the PR already has a queue entry. Draft PRs retain the two-stage confirmation and mark-ready flow.Demo
comparison.mp4
Matched production GHUI TUI runs: base
090a4d5and final fix57d6d1e, refreshed after the error-gate follow-up, using the samem, then Enter interaction at 120x26. The GitHub backend is simulated; merge-info decoding, CLI argument construction, merge flow, rendering, and key handling are production code from each revision. Both recordings use the same fixture from57d6d1e. Startup is trimmed; playback is 1x with 1.5-second modal and 3.5-second result-frame holds. Exported at 60fps. Also verified both revisions at 84x26.Scope
This fixes merge-queue targets and blocks confirmation after lookup errors within the existing merge workflow. It does not add queue management or change successful ordinary merge behavior. A patch changeset is included.
Verification
All passed at final head
57d6d1e: 34 focused regressions, 578 tests in the full command, and 131 keymap tests. The full suite emitted nonfatal TreeSitter teardown warnings. Verified with Bun 1.4.0 and the repository-pinned Effect/Atom beta.90 dependencies. Supplemental typechecking of the new tests also passed.Read-only GitHub GraphQL introspection confirmed the queue field and its meaning; the query validated against GitHub. GitHub CLI 2.96.0 source confirms the deletion rejection, automatic queue request, and explicit admin bypass. No live GitHub merge was performed; mutation verification uses a fake command runner and real merge-flow hook tests.
Four production regressions verify that lookup errors block Enter/direct confirmation for ready/draft PRs without command calls or state changes. An independent production hook/keymap probe still reproduces the hidden request on base
090a4d5and confirms disabled dispatch with no mutations on final head57d6d1e.