Skip to content

Show when a linked PR is queued to merge - #6

Merged
ajma merged 1 commit into
mainfrom
pr-status-merge-queue
Oct 14, 2026
Merged

ajma merged 1 commit into
mainfrom
pr-status-merge-queue

Conversation

@ajma

@ajma ajma commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Summary

A PR waiting in GitHub's merge queue now reads Queued to merge in the PR column. While a PR is queued, GitHub still reports it as CLEAN and MERGEABLE, so before this it read Mergeable, the same as a PR nobody has queued.

 pullRequests (server/issues.ts)
-  nodes { number title url state isDraft reviewDecision mergeable mergeStateStatus }
+  nodes { number title url state isDraft reviewDecision mergeable mergeStateStatus isInMergeQueue }

 mergeStatus(pr) (client/pull-request-status.tsx)
   isDraft                      → Draft
+  isInMergeQueue               → Queued to merge
   conflicting                  → Merge conflicts
   BLOCKED / BEHIND / UNSTABLE  → Merge blocked / Branch out of date / Checks not passing
   CLEAN + MERGEABLE            → Mergeable

The label is green, like Mergeable, since a queued PR needs nothing from anyone. OVERVIEW.md and README.md now say queued PRs are identified.

Evidence

  • Before: both new checks failed:
    screen: issue whose PR is { isInMergeQueue: true, CLEAN, MERGEABLE }
            expect "Queued to merge"   → Unable to find an element with the text: Queued to merge
    server: expect PR query to contain "isInMergeQueue"
                                       → expected 'query(...)' to contain 'isInMergeQueue'
    
    After: both pass. npm run typecheck passes, npm test passes all 335 tests across 12 files, and git diff --check is clean.
  • Installed from this branch on the local daemon (status running). Through the daemon, the client bundle includes "Queued to merge", and issues.pull-requests returns isInMergeQueue from GitHub for a real issue (false for its merged PR). No queued PR was linked to an issue at the time, so there is no screenshot of the label.

Merge Danger

Door: two-way

No settings or migrations. Reverting restores the previous query and label.

Blast Radius: small

Only the merge line of open PRs changes. The query asks GitHub for one more field; if GitHub ever rejected it, the PR status lookup would fail with the existing "Could not load PR status" message while issues and workspace actions stay usable.

🤖 Generated with Claude Code

While a PR waits in GitHub's merge queue, GitHub still reports it as
clean and mergeable, so the PR column called it Mergeable. Ask GitHub
for isInMergeQueue and label those PRs Queued to merge.
@ajma
ajma merged commit a5e66ac into main Oct 14, 2026
1 check 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