Adds a comment to this commit.
POST /repos/{owner}/{repo}/commits/{commit_sha}/comments
Comment data. body is required.
Optionalsignal: AbortSignalThe created commit comment
Fetches GitHub Actions check runs for this commit.
GET /repos/{owner}/{repo}/commits/{ref}/check-runs
Optionalparams: CheckRunsParamsOptional filters: check_name, status, app_id, per_page, page
Optionalsignal: AbortSignalA paged response of check runs
Fetches the combined commit status — an aggregation of all statuses for this ref.
GET /repos/{owner}/{repo}/commits/{ref}/status
Optionalsignal: AbortSignalThe combined status object
Fetches comments on this commit.
GET /repos/{owner}/{repo}/commits/{commit_sha}/comments
Optionalparams: PaginationParamsOptional pagination: per_page, page
Optionalsignal: AbortSignalA paged response of commit comments
Creates a commit status (e.g., from a CI/CD system).
POST /repos/{owner}/{repo}/statuses/{sha}
Status data. state is required.
Optionalsignal: AbortSignalThe created commit status
Fetches the commit details, including stats and changed files.
GET /repos/{owner}/{repo}/commits/{ref}
Optionalsignal: AbortSignalThe commit object with stats and files
Fetches the individual commit statuses (from CI/CD systems via the Statuses API).
GET /repos/{owner}/{repo}/statuses/{sha}
Optionalparams: PaginationParamsOptional pagination: per_page, page
Optionalsignal: AbortSignalA paged response of commit statuses
Allows the resource to be awaited directly, resolving with the commit info. Delegates to CommitResource.get.
Optionalonfulfilled: null | (value: GitHubCommit) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
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.Example