Commit

Represents a Git commit.

Implements

Connections

comments (CommitCommentConnection!)

Comments made on the commit.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

history (CommitHistoryConnection!)

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

Argument Type Description
after String

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

author CommitAuthor

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

before String

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

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.

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

abbreviatedOid (String!)

An abbreviated version of the Git object ID

author (GitActor)

Authorship details of the commit.

authoredByCommitter (Boolean!)

Check if the committer and the author match.

blame (Blame!)

Fetches git blame information.

Argument Type Description
path String!

The file whose Git blame information you want.

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.

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

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

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 repository.