GitHub Get Pull Request Diff
GitHubGetPullRequestDiffTool · Tools · Connections
Get a pull request's change as text. Read-only. format diff is the combined unified diff; patch is the commit series, each commit with its full message. Long text arrives in windows: when text_window.next_offset is not null, call again with text_offset set to it. GitHub refuses to render a diff past its own size limits; list the files instead.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
format | any | No | diff (default) for the combined change, or patch for each commit with its full message. |
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. |