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
orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}
Ordering options for pull requests.
blame(path: String!): Blame!
Fetches git blame
information.
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.
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.
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
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.
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.
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.