Skip to content

GitHubPullRequestCommit

Defined in: pulls/pulls.ts:94

One commit as returned by GET /pulls/{pull_number}/commits — only the fields any known consumer needs.

author: { login: string; type: "User" | "Bot"; } | null

Defined in: pulls/pulls.ts:107

The commit’s linked GitHub account, when GitHub can associate one — null for a commit email with no linked account. type: "Bot" identifies an app-authored commit (e.g. Dependabot, a prior Sentinel auto-fix-commit).


commit: object

Defined in: pulls/pulls.ts:98

The commit’s message and git identities.

author: GitHubCommitIdentity

The commit’s author, as git recorded it.

committer: GitHubCommitIdentity

The commit’s committer, as git recorded it.

message: string

The commit message.


parents: object[]

Defined in: pulls/pulls.ts:109

More than one entry marks a merge commit — it has no authorship of its own beyond its parents’, the reason DCO enforcement (and this org’s own CI) never requires a signoff on one.

sha: string


sha: string

Defined in: pulls/pulls.ts:96

The commit’s SHA.