Repository navigation
DOC: Batch review-comment replies into one review submission - #7242
Merged
hjmjohnson merged 1 commit intoNov 26, 2026
Merged
hjmjohnson merged 1 commit into
hjmjohnson merged 1 commit into
Conversation
Answering many review comments on a pull request one reply at a time sends one notification each, which spams the reviewers and maintainers watching the PR. Document the batched flow in the pull-request guide: create a pending review, attach each reply with inReplyTo, and submit the review once. Marked as an agent default, since posting a reply per comment is an agent workflow habit rather than a defect a reviewer can cite. Closes InsightSoftwareConsortium#7171
There was a problem hiding this comment.
Thank you for contributing a pull request! 🙏
Welcome to the ITK community! 🤗👋☀️
We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜
More support and guidance on the contribution process can be found in our contributing guide. 📖
This is an automatic message. Allow for time for the ITK community to be able to read the pull request and comment
on it.
dzenanz
approved these changes
Nov 26, 2026
dzenanz
marked this pull request as ready for review
November 26, 2026 16:52
Contributor
[Low impact] The documentation change appears safe to merge.
|
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.
Add an agent default that batches review-comment replies into one review submission, so answering many comments on a PR sends one notification instead of one per reply. Closes #7171.
Why
pull-requests.mdDocumentation/AI/pull-requests.mdalready covers the push side ofupdating a PR (rebase and fixup pushes) but says nothing about how an
agent answers review comments, which is the step that produces the
notifications this issue reports. The batch API is a workflow rule, so it
belongs beside the push rules rather than in
prose-budget.md, whichgoverns committed text.
AGENTS.mdalready routes "Opening or updating a pull request" to thisfile, so no routing change was needed. The repository has no
.github/copilot-instructions.md;AGENTS.mdandCLAUDE.md(@AGENTS.md)are the agent specs.
Rule tier
The rule is marked Agent default, not a project standard. Per
rule-tiers.md, an agent default is a proxy for a standard and tracks ameasured agent tendency: posting one reply per comment is an agent
workflow habit, and a human answering three comments by hand is not a
defect a reviewer could cite. The notification cost the issue describes is
real for both, but the batching requirement is written to change what an
agent does.
API check
The three mutations the section names exist, and their inputs accept the
fields it describes (GraphQL introspection on 2026-11-26):
addPullRequestReview— inputs includepullRequestId,body,event.addPullRequestReviewComment— inputs includeinReplyTo,pullRequestReviewId,path,position.submitPullRequestReview— exists.PullRequestReviewEventhas noPENDINGvalue (COMMENT,APPROVE,REQUEST_CHANGES,DISMISS), which is why the section says to create thereview with no
eventset: that leaves it pending, so the replies sendnothing until the single submit.
Validation
repository, and the PR checklist item "Added test (or behavior not
changed)" applies as "behavior not changed".
pre-commitMarkdown-relevant hooks(
trailing-whitespace,end-of-file-fixer) checked by hand: no trailingwhitespace, no tabs, single trailing newline.
Utilities/Hooks/kw-prose-budget.pychecks commit messages, notdocumentation files, so it has nothing to add here.
AI assistance
checked the GraphQL fields it names
pull-requests.md, drafted theagent-default wording to match
rule-tiers.md, and validated the threemutations by schema introspection
PR Checklist