Commit

Represents a Git commit.

Implements

Connections

comments (CommitCommentConnection)
Comments made on the commit.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

history (CommitHistoryConnection)
The linear commit history starting from (and including) this commit, in the same order as `git log`.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

path String

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

author Author

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.

Fields

author (GitActor)

Authorship details of the commit.

blame (Blame)

Fetches git blame information.

Argument Type Description
path

The file whose Git blame information you want.

committedViaWeb (Boolean)

Check if commited via GitHub web UI.

committer (GitActor)

Committership details of the commit.

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

path (URI)

The HTTP path for this commit

repository (Repository)

The Repository this commit belongs to

signature (GitSignature)

Commit signing information, if present.

status (Status)

Status information for this commit

tree (Tree)

Commit's root Tree

url (URI)

The HTTP url for this commit

websocket (String)

The websocket channel ID for live updates.