Contents

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

NameTypeRequiredDescription
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.