Review a pull request
create_pull_request_reviewSubmit an approve, request-changes, or comment review on a Forgejo pull request, optionally with a summary and commit pin, to record review feedback.
Instructions
Submit a review on a pull request (owner/repo/index/verdict; requires write mode). verdict is approve, request_changes or comment; body is the review's summary, which the forge requires for request_changes and comment. commit_id pins the review to a commit (full SHA); by default it is the current head. A forge will not let you approve your own pull request. Answers with the review in list_pull_request_reviews' shape.
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>",
"index": "<index>",
"verdict": "<verdict>"
},
"name": "create_pull_request_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The review's summary text (Markdown). The forge requires it for `request_changes` and `comment`. | |
| repo | Yes | Repository name. | |
| index | Yes | Pull-request number. | |
| owner | Yes | Repository owner. | |
| verdict | Yes | `approve`, `request_changes` or `comment`. | |
| commit_id | No | The commit the review is of (full SHA). Defaults to the pull request's current head. |