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 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: null | (value: BitbucketCommit) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
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