ensure_pending_review
Creates or returns an existing pending review for a pull request, providing reviewId and commitId for adding inline comments.
Instructions
Ensure a pending review exists for the PR. Creates a new pending review if none exists, or returns the existing one. Returns reviewId and commitId for adding inline comments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"prNumber": "<prNumber>"
},
"name": "ensure_pending_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional body text for the pending review | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner/organization | |
| prNumber | Yes | Pull request number |