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.

// Await directly to get commit info
const commit = await bbClient.project('PROJ').repo('my-repo').commit('abc123');

// Get file changes introduced by this commit
const changes = await bbClient.project('PROJ').repo('my-repo').commit('abc123').changes();

// Get the full diff for this commit
const diff = await bbClient.project('PROJ').repo('my-repo').commit('abc123').diff();

Implements

Methods