Object GitHub::Commit

Represents a Git commit.

Fields

abbreviatedOid: String!

An abbreviated version of the Git object ID

additions: Int!

The number of additions in this commit.

associatedPullRequests(after: String, before: String, first: Int, last: Int, orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}): PullRequestConnection

The pull requests associated with a commit

Args

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}

Ordering options for pull requests.

author: GitActor

Authorship details of the commit.

authoredByCommitter: Boolean!

Check if the committer and the author match.

authoredDate: DateTime!

The datetime when this commit was authored.

blame(path: String!): Blame!

Fetches git blame information.

Args

path: String!

The file whose Git blame information you want.

changedFiles: Int!

The number of changed files in this commit.

comments(after: String, before: String, first: Int, last: Int): CommitCommentConnection!

Comments made on the commit.

Args

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

commitResourcePath: URI!

The HTTP path for this Git object

commitUrl: URI!

The HTTP URL for this Git object

committedDate: DateTime!

The datetime when this commit was committed.

committedViaWeb: Boolean!

Check if commited via GitHub web UI.

committer: GitActor

Committership details of the commit.

deletions: Int!

The number of deletions in this commit.

deployments(environments: [String!], orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}, after: String, before: String, first: Int, last: Int): DeploymentConnection

The deployments associated with a commit.

Args

environments: [String!]

Environments to list deployments for

orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}

Ordering options for deployments returned from the connection.

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

history(after: String, before: String, first: Int, last: Int, path: String, author: CommitAuthor, since: GitTimestamp, until: GitTimestamp): CommitHistoryConnection!

The linear commit history starting from (and including) this commit, in the same order as git log.

Args

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

path: String

If non-null, filters history to only show commits touching files under this path.

author: CommitAuthor

If non-null, filters history to only show commits with matching authorship.

since: GitTimestamp

Allows specifying a beginning time or date for fetching commits.

until: GitTimestamp

Allows specifying an ending time or date for fetching commits.

id: ID!

message: String!

The Git commit message

messageBody: String!

The Git commit message body

messageBodyHTML: HTML!

The commit message body rendered to HTML.

messageHeadline: String!

The Git commit message headline

messageHeadlineHTML: HTML!

The commit message headline rendered to HTML.

oid: GitObjectID!

The Git object ID

onBehalfOf: Organization

The organization this commit was made on behalf of.

parents(after: String, before: String, first: Int, last: Int): CommitConnection!

The parents of a commit.

Args

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

pushedDate: DateTime

The datetime when this commit was pushed.

repository: Repository!

The Repository this commit belongs to

resourcePath: URI!

The HTTP path for this commit

signature: GitSignature

Commit signing information, if present.

status: Status

Status information for this commit

statusCheckRollup: StatusCheckRollup

Check and Status rollup information for this commit.

submodules(after: String, before: String, first: Int, last: Int): SubmoduleConnection!

Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file.

Args

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

tarballUrl: URI!

Returns a URL to download a tarball archive for a repository. Note: For private repositories, these links are temporary and expire after five minutes.

tree: Tree!

Commit's root Tree

treeResourcePath: URI!

The HTTP path for the tree of this commit

treeUrl: URI!

The HTTP URL for the tree of this commit

url: URI!

The HTTP URL for this commit

viewerCanSubscribe: Boolean!

Check if the viewer is able to change their subscription status for the repository.

viewerSubscription: SubscriptionState

Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.

zipballUrl: URI!

Returns a URL to download a zipball archive for a repository. Note: For private repositories, these links are temporary and expire after five minutes.

Uses

BaseRefForcePushedEvent.afterCommit

BaseRefForcePushedEvent.beforeCommit

BlameRange.commit

CommitComment.commit

CommitCommentThread.commit

CommitConnection.nodes

CommitEdge.node

CommitHistoryConnection.nodes

Deployment.commit

HeadRefForcePushedEvent.afterCommit

HeadRefForcePushedEvent.beforeCommit

MergeBranchPayload.mergeCommit

MergedEvent.commit

PullRequest.mergeCommit

PullRequest.potentialMergeCommit

PullRequestCommit.commit

PullRequestCommitCommentThread.commit

PullRequestReview.commit

PullRequestReviewComment.commit

PullRequestReviewComment.originalCommit

PullRequestRevisionMarker.lastSeenCommit

ReferencedEvent.commit

Status.commit

StatusCheckRollup.commit

StatusContext.commit

Closer

IssueTimelineItem

PullRequestTimelineItem

GitObject

Node

Subscribable

UniformResourceLocatable