Skip to main content

GitCommit

API reference

An immutable git commit.

Implements Node

authoredDate
Git author date, in RFC3339 format.
authorEmail
Git author email.
authorName
Git author name.
committedDate
Git committer date, in RFC3339 format.
committerEmail
Git committer email.
committerName
Git committer name.
id
A unique identifier for this GitCommit.
message
Full commit message.
messageBody
Commit message body, excluding the headline.
messageHeadline
First line of the commit message.
parentShas
Parent commit SHAs.
sha
The full commit SHA.
shortSha
The abbreviated commit SHA.
ancestorReleaseTag
The latest semver release tag reachable from this commit.
releaseTag
The latest semver release tag that points directly at this commit.
tree
The filesystem tree at this commit.

authoredDate: String!

Git author date, in RFC3339 format.

authorEmail: String!

Git author email.

authorName: String!

Git author name.

committedDate: String!

Git committer date, in RFC3339 format.

committerEmail: String!

Git committer email.

committerName: String!

Git committer name.

id: ID!

A unique identifier for this GitCommit.

message: String!

Full commit message.

messageBody: String!

Commit message body, excluding the headline.

messageHeadline: String!

First line of the commit message.

parentShas: [String!]!

Parent commit SHAs.

sha: String!

The full commit SHA.

shortSha: String!

The abbreviated commit SHA.

ancestorReleaseTag(includePreRelease: Boolean = false): GitRef

The latest semver release tag reachable from this commit.

includePreRelease: Boolean = false

Include pre-release tags when choosing the latest tag.

releaseTag(includePreRelease: Boolean = false): GitRef

The latest semver release tag that points directly at this commit.

includePreRelease: Boolean = false

Include pre-release tags when choosing the latest tag.

tree(discardGitDir: Boolean = false,depth: Int = 1,includeTags: Boolean = false): Directory!

The filesystem tree at this commit.

discardGitDir: Boolean = false

Set to true to discard .git directory.

depth: Int = 1

The depth of the tree to fetch.

includeTags: Boolean = false

Set to true to populate tag refs in the local checkout .git.

References

Returned by