Comment on pull request as formal review at exact head
gh_comment_pr_reviewSubmit a formal GitHub COMMENTED PR review tied to a specific head SHA, capturing an external or Central disposition without marking the PR as APPROVED.
Instructions
Additive write: submit exactly one formal GitHub COMMENTED review through the ordinary authenticated GitHub principal for the supplied exact PR head. This is the explicit same-author fallback for recording an external or Central disposition; COMMENTED is never reported as GitHub APPROVED. The write is attempted once and immutable review-ID readback verifies actor, state, head, and body. It cannot select reviewer credentials, approve, merge, or retry an ambiguous mutation automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Non-empty Markdown review body. This may record an external/Central positive disposition, but GitHub state remains COMMENTED, never APPROVED. | |
| 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 record a formal comment review. | |
| expected_head_sha | Yes | Exact pull-request head SHA to which the COMMENTED review is bound. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | Yes | ||
| state | Yes | ||
| action | No | comment | |
| 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 |