Request pull request changes at exact head
gh_request_pr_changesSubmit a formal GitHub CHANGES_REQUESTED review to request changes on a pull request, verifying the reviewer login and head SHA. Guarantees a single immutable review submission.
Instructions
Additive write: submit exactly one formal GitHub CHANGES_REQUESTED review for the supplied exact pull-request head through the server-configured reviewer principal. The exact expected reviewer login is a compare-only precondition and cannot select credentials. The review POST is attempted once and immutable review-ID readback verifies state, actor, head, and body. It cannot approve, merge, dismiss reviews, or replay an ambiguous mutation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Non-empty Markdown body explaining the requested changes. | |
| repo | Yes | GitHub repository name without the owner prefix. | |
| owner | Yes | GitHub repository owner or organization login. | |
| number | Yes | Pull request number on which to request changes. | |
| expected_head_sha | Yes | Exact pull-request head SHA that was independently reviewed. | |
| expected_reviewer_login | Yes | Exact reviewer actor login expected from the server-configured reviewer principal. This is a compare-only precondition and never selects credentials. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | Yes | ||
| state | Yes | ||
| action | No | request_changes | |
| author | No | ||
| number | Yes | ||
| message | Yes | ||
| warning | No | ||
| review_id | Yes | ||
| commit_sha | Yes | ||
| request_id | No | ||
| submitted_at | No | ||
| write_completed | Yes | ||
| readback_completed | Yes | ||
| precondition_checked | Yes | ||
| state_matches_requested | Yes |