Class CommitResource

Represents a GitHub commit resource with chainable async methods.

Implements PromiseLike<GitHubCommit> so it can be awaited directly to fetch the commit info, while also exposing sub-resource methods.

// Await directly to get commit info (includes stats and files)
const commit = await gh.org('github').repo('linguist').commit('abc123');

// Get CI/CD statuses for this commit
const statuses = await gh.org('github').repo('linguist').commit('abc123').statuses();

// Get the combined (aggregated) status
const combined = await gh.org('github').repo('linguist').commit('abc123').combinedStatus();

// Get GitHub Actions check runs
const checks = await gh.org('github').repo('linguist').commit('abc123').checkRuns();

Implements

Methods