Skip to content

DOC: Batch review-comment replies into one review submission - #7242

Merged
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:mainfrom
Goldloli:doc-batch-review-comment-replies
Nov 26, 2026
Merged

hjmjohnson merged 1 commit into
InsightSoftwareConsortium:mainfrom
Goldloli:doc-batch-review-comment-replies

Conversation

@Goldloli

Copy link
Copy Markdown
Contributor

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.md

Documentation/AI/pull-requests.md already covers the push side of
updating 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, which
governs committed text.

AGENTS.md already routes "Opening or updating a pull request" to this
file, so no routing change was needed. The repository has no
.github/copilot-instructions.md; AGENTS.md and CLAUDE.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 a
measured 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 include pullRequestId, body, event.
  • addPullRequestReviewComment — inputs include inReplyTo,
    pullRequestReviewId, path, position.
  • submitPullRequestReview — exists.

PullRequestReviewEvent has no PENDING value (COMMENT, APPROVE,
REQUEST_CHANGES, DISMISS), which is why the section says to create the
review with no event set: that leaves it pending, so the replies send
nothing until the single submit.

Validation
  • The change is documentation only; no test covers a Markdown file in this
    repository, and the PR checklist item "Added test (or behavior not
    changed)" applies as "behavior not changed".
  • The edited file passes the pre-commit Markdown-relevant hooks
    (trailing-whitespace, end-of-file-fixer) checked by hand: no trailing
    whitespace, no tabs, single trailing newline.
  • Utilities/Hooks/kw-prose-budget.py checks commit messages, not
    documentation files, so it has nothing to add here.
AI assistance
  • Tool: ZCode
  • Role: read the issue and the AI documentation set, wrote the section and
    checked the GraphQL fields it names
  • Contribution: located the missing step in pull-requests.md, drafted the
    agent-default wording to match rule-tiers.md, and validated the three
    mutations by schema introspection
  • The author reviewed the change

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any)
  • Added examples for all new major features (if any)

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
@github-actions github-actions Bot added type:Documentation Documentation improvement or change area:Documentation Issues affecting the Documentation module labels Nov 26, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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
dzenanz marked this pull request as ready for review November 26, 2026 16:52
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The documentation change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The documentation change appears safe to merge.

Summary

Adds guidance for answering review comments in one batch.

  • Agents now send review replies together instead of one at a time.

Reviews (1) · Last reviewed commit: "DOC: Batch review-comment replies into o..." · Reviewed by Greptile

@dzenanz
dzenanz requested a review from hjmjohnson November 26, 2026 16:56

@hjmjohnson hjmjohnson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@hjmjohnson
hjmjohnson merged commit 329dae1 into InsightSoftwareConsortium:main Nov 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Documentation Issues affecting the Documentation module type:Documentation Documentation improvement or change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update AI agent instructions: batch replies to PR review comments to avoid notification spam

3 participants