GitHub Get Pull Request
GitHubGetPullRequestTool · Tools · Connections
Get one pull request by number, as GitHub returns it: head and base branches with their SHAs, draft and merge state, requested reviewers, diff size, body, and attachments. Read-only. Open a listed file with github_view_pull_request_attachment. A long body arrives in windows: when text_window.next_offset is not null, call again with text_offset set to it.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | No | Repository owner. Defaults to the connection's installation account or OAuth user; give it for organization or collaborator repositories. |
pull_number | integer | Yes | Pull request number. |
repo | string | Yes | Repository name, without the owner. |
text_offset | integer | No | Where to start reading the full text, in Unicode characters. Pass the previous result's `text_window.next_offset` to continue. |