Skip to content

docs(github-project): verify a PR actually merged through the queue#84

Merged
CybotTM merged 2 commits into
mainfrom
docs/verify-merge-queue-completion
Jun 2, 2026
Merged

docs(github-project): verify a PR actually merged through the queue#84
CybotTM merged 2 commits into
mainfrom
docs/verify-merge-queue-completion

Conversation

@CybotTM
Copy link
Copy Markdown
Member

@CybotTM CybotTM commented Jun 2, 2026

Small addition to references/auto-merge-guide.md, complementing the existing Merge Queue Behavior section.

On a merge-queue repo, gh pr merge --merge/--auto only enqueues — the command returns success immediately, the PR stays open, and the queue merges later (or stalls). Reporting "merged" off the exit code is wrong.

Adds a "Verifying a PR Actually Merged (enqueue ≠ merged)" subsection: the gh-readonly-queue/<base>/pr-<N>-<sha> CI branch naming, and the recipe to confirm landing — GraphQL mergeQueue.entries for position/state, gh run list --event merge_group to watch the queue CI, and gh pr view --json state,mergedAt to confirm MERGED before declaring done.

Distilled from merging a real PR through a queue where the full-matrix CI ran ~9.5 min on the readonly-queue branch after enqueue.

…eue' recipe

On a merge-queue repo, gh pr merge --merge/--auto only enqueues — the PR
stays open and the queue merges later (or stalls). Document that
enqueue != merged, the gh-readonly-queue/<base>/pr-<N>-<sha> CI branch
naming, and the GraphQL mergeQueue / merge_group / pr-view recipe to
confirm the PR actually lands before declaring done.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings June 2, 2026 11:19
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documentation-only addition to the auto-merge guide explaining that on merge-queue repositories, gh pr merge --merge/--auto only enqueues a PR rather than merging it, and providing concrete commands to verify the PR actually landed.

Changes:

  • Adds a new "Verifying a PR Actually Merged (enqueue ≠ merged)" subsection to references/auto-merge-guide.md.
  • Documents the gh-readonly-queue/<base>/pr-<N>-<sha> synthetic branch naming used by the merge queue.
  • Provides GraphQL/gh recipes to inspect queue position, watch merge_group CI runs, and confirm MERGED state.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new section to the auto-merge guide explaining how to verify if a PR has actually merged when a merge queue is in use. The review feedback suggests improving the robustness of the provided gh CLI commands by using GraphQL variables instead of hardcoded placeholders, and utilizing optional chaining in jq expressions to safely handle potentially null fields.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread skills/github-project/references/auto-merge-guide.md Outdated
Comment thread skills/github-project/references/auto-merge-guide.md Outdated
Per the repo's agent-rules: pass values to gh api graphql via -f/-F
variables instead of hardcoding owner/name in the query string, and use
optional chaining (.mergeQueue?, .mergeCommit?.oid) with a fallback so
jq is safe when the merge queue is disabled or the PR is unmerged.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

@CybotTM CybotTM merged commit 22082bd into main Jun 2, 2026
16 checks passed
@CybotTM CybotTM deleted the docs/verify-merge-queue-completion branch June 2, 2026 11:34
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.

2 participants