Posts a build status for this commit.
POST /rest/build-status/latest/commits/{id}
Build state, key, url and optional metadata
The created build status
Posts a comment on this commit.
POST /rest/api/latest/projects/{key}/repos/{slug}/commits/{id}/comments
Comment text and optional anchor/parent
The created comment
Fetches the build statuses associated with this commit.
GET /rest/build-status/latest/commits/{id}
Optionalparams: BuildStatusesParamsOptional filters: limit, start, key
A paged response of build statuses
Fetches the file changes introduced by this commit.
GET /rest/api/latest/projects/{key}/repos/{slug}/commits/{id}/changes
Optionalparams: CommitChangesParamsOptional filters: limit, start, since
A paged response of file changes
Fetches the comments on this commit.
GET /rest/api/latest/projects/{key}/repos/{slug}/commits/{id}/comments
Optionalparams: PaginationParamsOptional pagination: limit, start
A paged response of comments
Fetches the full diff for this commit.
GET /rest/api/latest/projects/{key}/repos/{slug}/commits/{id}/diff
Optionalparams: DiffParamsOptional: contextLines, srcPath, whitespace
The diff object
Fetches the commit details.
GET /rest/api/latest/projects/{key}/repos/{slug}/commits/{id}
The commit object
Allows the resource to be awaited directly, resolving with the commit info. Delegates to CommitResource.get.
Optionalonfulfilled: ((value: BitbucketCommit) => TResult1 | PromiseLike<TResult1>) | nullOptionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null
Represents a Bitbucket commit resource with chainable async methods.
Implements
PromiseLike<BitbucketCommit>so it can be awaited directly to fetch the commit info, while also exposing sub-resource methods.Example