Fetches the commits included in this pull request.
GET /repos/{owner}/{repo}/pulls/{pull_number}/commits
Optionalparams: PaginationParamsOptional pagination: per_page, page
A paged response of commits
Fetches the files changed by this pull request.
GET /repos/{owner}/{repo}/pulls/{pull_number}/files
Optionalparams: PullRequestFilesParamsOptional pagination: per_page, page
A paged response of changed files
Fetches the pull request details.
GET /repos/{owner}/{repo}/pulls/{pull_number}
The pull request object
Checks whether the pull request has been merged.
GET /repos/{owner}/{repo}/pulls/{pull_number}/merge
true if merged (HTTP 204), false if not merged (HTTP 404)
Fetches the inline review comments on this pull request's diff.
GET /repos/{owner}/{repo}/pulls/{pull_number}/comments
Optionalparams: ReviewCommentsParamsOptional filters: sort, direction, since, per_page, page
A paged response of review comments
Fetches the reviews submitted on this pull request.
GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews
Optionalparams: ReviewsParamsOptional pagination: per_page, page
A paged response of reviews
Allows the resource to be awaited directly, resolving with the pull request info. Delegates to PullRequestResource.get.
Optionalonfulfilled: null | (value: GitHubPullRequest) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
Represents a GitHub pull request resource with chainable async methods.
Implements
PromiseLike<GitHubPullRequest>so it can be awaited directly to fetch the pull request info, while also exposing sub-resource methods.Example