Pull request detail
forgejo_get_pull_requestRetrieve a pull request's description, merge state, statistics, and optional unified diff. Use include_diff=false for a light status check or include_diff=true to inspect code changes.
Instructions
Returns a pull request: description, merge state, statistics and, on request, the unified diff.
Parameters: owner, repo, number (required), include_diff (bool, default false), response_format.
Returns: { number, title, state, merged, mergeable, head, base, additions, deletions, changed_files, body, html_url, diff? }
The diff is truncated past the context limit and the cut is explicitly reported in the returned text. Tip: leave include_diff=false for a status check — it saves a lot of context.
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": {
"number": "<number>"
},
"name": "forgejo_get_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name. Defaults to FORGEJO_DEFAULT_REPO. | |
| owner | No | Repository owner (user or organisation). Defaults to FORGEJO_DEFAULT_OWNER. | |
| number | Yes | Pull request number. | |
| include_diff | No | Attach the unified diff (large). | |
| response_format | No | 'markdown' for a readable rendering, 'json' for the full data. | markdown |