Contents

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

NameTypeRequiredDescription
formatanyNodiff (default) for the combined change, or patch for each commit with its full message.
ownerstringNoRepository owner. Defaults to the connection's installation account or OAuth user; give it for organization or collaborator repositories.
pull_numberintegerYesPull request number.
repostringYesRepository name, without the owner.
text_offsetintegerNoWhere to start reading the full text, in Unicode characters. Pass the previous result's `text_window.next_offset` to continue.