Fetches the activity feed for this pull request.
Activities include comments, approvals, reviews, rescopes, merges, and declines.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/activities
Optionalparams: ActivitiesParamsOptional filters: limit, start, fromId, fromType
An array of pull request activities, ordered from most recent to oldest
Fetches the aggregated build summaries for this pull request.
Returns a map of commit hash → build counts per state
(successful, failed, inProgress, cancelled, unknown).
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/build-summaries
A record keyed by commit SHA with aggregated build counts
Fetches the file changes included in this pull request.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/changes
Optionalparams: ChangesParamsOptional filters: limit, start, withComments
An array of file changes
Fetches the commits included in this pull request.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/commits
Optionalparams: PaginationParamsOptional pagination: limit, start
An array of commits
Fetches the pull request details.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}
The pull request object
Fetches the Jira issues linked to this pull request.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/issues
An array of linked Jira issues
Fetches the Code Insights reports for this pull request.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/reports
Optionalparams: ReportsParamsOptional pagination: limit, start
An array of Code Insights reports
Fetches the tasks (review to-do items) for this pull request.
Tasks are created by reviewers on specific comments and can be OPEN or RESOLVED.
GET /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/tasks
Optionalparams: TasksParamsOptional filters: limit, start
An array of pull request tasks
Allows the resource to be awaited directly, resolving with the pull request info. Delegates to PullRequestResource.get.
Optionalonfulfilled: null | (value: BitbucketPullRequest) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
Represents a Bitbucket pull request resource with chainable async methods.
Implements
PromiseLike<BitbucketPullRequest>so it can be awaited directly to fetch the pull request info, while also exposing sub-resource methods.Example