Repository navigation
Post the review bot's findings as one grouped PR review - #5673
Merged
Merged
Conversation
The inline-comment tool creates each comment as its own single-comment review, and the tracking comment repeated the review summary, so #5664 got four separate items. Use the GitHub MCP server's pending-review tools to post the body, verdict and inline comments as one review, keep gh pr review and the inline tool as a fallback, and shrink the tracking comment to one line.
tianyu-l
requested review from
acisseJZhong,
felipemello1 and
shuhuayu
as code owners
October 29, 2026 05:43
wwwjn
approved these changes
Oct 29, 2026
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
The first
@claude reviewwith the new skill (#5664) put four separate items on the PR:create_inline_commentposts every comment on its own, so GitHub wraps each one in a single-comment reviewgh pr reviewThe reviewer has to read the same review twice, and the inline comments are detached from the verdict.
Example. After this PR, the same run produces:
What changed
Skill.
pr-reviewnow posts with the GitHub MCP server's pending-review tools, which ship with the pinnedclaude-code-action:create_pending_pull_request_reviewadd_comment_to_pending_review, once per line-anchored findingsubmit_pending_pull_request_reviewwith the body andAPPROVE/REQUEST_CHANGES/COMMENTIf a pending review is left over from an interrupted run, the bot deletes it and retries. If the pending-review tools are unavailable, it falls back to the previous path (inline tool, then
gh pr review) and never posts a finding through both.Tracking comment. After a review it is one line: the verdict and a link to the review.
claude-code.yml. Allows only those four pending-review tools from the GitHub MCP server. Other tools in that server, such as merge, andgh apistay blocked.Testing
The change only takes effect from
main, so it can't be exercised before merging. After merge, run@claude reviewon a PR with line-level findings and check that the result is one review containing the inline comments, plus a one-line tracking comment.Known issues
viewer. That should resolve toclaude[bot]with the app's installation token, but this hasn't been checked. If it fails, the bot falls back to the previous ungrouped posting.