Skip to content

Clarify pull_request_review_write title notes pending review creation#2837

Open
JuggerGrimrod88 wants to merge 1 commit into
github:mainfrom
JuggerGrimrod88:fix/pr-review-write-pending-title
Open

Clarify pull_request_review_write title notes pending review creation#2837
JuggerGrimrod88 wants to merge 1 commit into
github:mainfrom
JuggerGrimrod88:fix/pr-review-write-pending-title

Conversation

@JuggerGrimrod88

@JuggerGrimrod88 JuggerGrimrod88 commented Jul 8, 2026

Copy link
Copy Markdown

What

Updates the Title annotation of the pull_request_review_write tool from:

Write operations (create, submit, delete) on pull request reviews

to:

Create (pending), submit, or delete pull request reviews

Why

When an MCP client (e.g. Claude Code) surfaces only a tool's short title, method: "create" reads as "create a review" — implying the review is created and submitted. In reality, when the event parameter is omitted, create opens a pending review that is not submitted; it must later be submitted via method: "submit_pending". The description body already documents this correctly, but the short title — the part many clients actually show — was misleading.

The parenthetical scopes "pending" to the create action: create opens a pending review when event is omitted, and submits immediately when event is supplied. This surfaces the pending-by-default behavior at a glance without overclaiming that create is always pending. No behavior, schema, or API change.

Closes #2524.

Wording

This follows the wording suggested in the issue, tightened to a parenthetical so "pending" reads as an attribute of create rather than a synonym for it (since create with event does submit). If a maintainer prefers different phrasing — e.g. the issue's alternate "Pending review create / submit / delete for pull requests" — it's a one-line change.

Verification

  • gofmt -l clean.
  • go vet ./pkg/github/
  • go build ./...
  • go test ./pkg/github/ -run 'TestCreateAndSubmitPullRequestReview|TestCreatePendingPullRequestReview|TestSubmitPendingPullRequestReview|TestDeletePendingPullRequestReview' — green.
  • Regenerated pull_request_review_write golden snapshot (pkg/github/__toolsnaps__/pull_request_review_write.snap) via UPDATE_TOOLSNAPS=true; the only delta is the title field, matching the code change.

Update the pull_request_review_write tool Title annotation from
"Write operations (create, submit, delete) on pull request reviews" to
"Create (pending), submit, or delete pull request reviews". The
parenthetical scopes "pending" to the create action: method: "create"
opens a pending review when the event parameter is omitted, and submits
immediately when event is supplied. MCP clients that surface only the
short title previously implied that create submits a review; the new
title surfaces the pending-by-default behavior at a glance. The
description body already documents the event-conditional behavior; only
the short title was misleading.

Closes github#2524.

Co-Authored-By: Claude <noreply@anthropic.com>
@JuggerGrimrod88 JuggerGrimrod88 force-pushed the fix/pr-review-write-pending-title branch from 7454e56 to 1bc0ece Compare July 8, 2026 02:22
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.

Clarify that pull_request_review_write create without event creates a pending review

1 participant