GitHubCommit

Represents a Git commit.

EXAMPLE USAGES
GitHubCreateOrUpdateFile

Create a single commit on the GitHub project ${repoOwner}/${repoName} that "upserts" (creates a new file if it doesn't exist, or updates it if it does).

For example, to add a new file "/examples/MyExample.md" to the OneGraph GraphQL Docs Repository, the following variables would work:

{
  "repoName": "graphql-docs",
  "repoOwner": "OneGraph",
  "branchName": "master",
  "path": "src/examples/MyExample.md",
  "message": "Adding a new example",
  "content": "Example file content here",
  "sha": null
}

Note that if you're updating a file, you'll need to provide its current sha for the mutation to succeed. See the GitHubGetFileShaAndContent example for how to find an existing file's sha.

FIELDS
abbreviatedOid (String!)

An abbreviated version of the Git object ID

additions (Int!)

The number of additions in this commit.

associatedPullRequests (GitHubPullRequestConnection)

The merged Pull Request that introduced the commit to the repository. If the commit is not present in the default branch, additionally returns open Pull Requests associated with the commit

author (GitHubGitActor)

Authorship details of the commit.

authoredByCommitter (Boolean!)

Check if the committer and the author match.

authoredDate (GitHubDateTime!)

The datetime when this commit was authored.

authors (GitHubGitActorConnection!)

The list of authors for this commit based on the git author and the Co-authored-by message trailer. The git author will always be first.

blame (GitHubBlame!)

Fetches git blame information.

changedFiles (Int!)

The number of changed files in this commit.

checkSuites (GitHubCheckSuiteConnection)

The check suites associated with a commit.

comments (GitHubCommitCommentConnection!)

Comments made on the commit.

commitResourcePath (GitHubURI!)

The HTTP path for this Git object

committedDate (GitHubDateTime!)

The datetime when this commit was committed.

committedViaWeb (Boolean!)

Check if committed via GitHub web UI.

committer (GitHubGitActor)

Committer details of the commit.

commitUrl (GitHubURI!)

The HTTP URL for this Git object

deletions (Int!)

The number of deletions in this commit.

deployments (GitHubDeploymentConnection)

The deployments associated with a commit.

file (GitHubTreeEntry)

The tree entry representing the file located at the given path.

history (GitHubCommitHistoryConnection!)

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

id (ID!)

No description

message (String!)

The Git commit message

messageBody (String!)

The Git commit message body

messageBodyHTML (GitHubHTML!)

The commit message body rendered to HTML.

messageHeadline (String!)

The Git commit message headline

messageHeadlineHTML (GitHubHTML!)

The commit message headline rendered to HTML.

oid (GitHubGitObjectID!)

The Git object ID

onBehalfOf (GitHubOrganization)

The organization this commit was made on behalf of.

oneGraphId (ID!)

Unique id across all of OneGraph

oneGraphLinkedNodes (OneGraphLinkedNodesConnection!)

List of OneGraphNodes that are linked from this node.

parents (GitHubCommitConnection!)

The parents of a commit.

pushedDate (GitHubDateTime)

The datetime when this commit was pushed.

repository (GitHubRepository!)

The Repository this commit belongs to

resourcePath (GitHubURI!)

The HTTP path for this commit

signature (GitHubGitSignature)

Commit signing information, if present.

status (GitHubStatus)

Status information for this commit

statusCheckRollup (GitHubStatusCheckRollup)

Check and Status rollup information for this commit.

submodules (GitHubSubmoduleConnection!)

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

tarballUrl (GitHubURI!)

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 (GitHubTree!)

Commit's root Tree

treeResourcePath (GitHubURI!)

The HTTP path for the tree of this commit

treeUrl (GitHubURI!)

The HTTP URL for the tree of this commit

url (GitHubURI!)

The HTTP URL for this commit

viewerCanSubscribe (Boolean!)

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

viewerSubscription (GitHubSubscriptionState)

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

zipballUrl (GitHubURI!)

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

IMPLEMENTS
OneGraphNode

An object with a globally unique id across all of OneGraph

GitHubGitObject

Represents a Git object.

GitHubNode

An object with an ID.

GitHubSubscribable

Entities that can be subscribed to for web and email notifications.

GitHubUniformResourceLocatable

Represents a type that can be retrieved by a URL.

REQUIRED BY
GitHubBaseRefForcePushedEvent

Represents a 'base_ref_force_pushed' event on a given pull request.

GitHubBlameRange

Represents a range of information from a Git blame.

GitHubCheckSuite

A check suite.

GitHubCommitComment

Represents a comment on a given Commit.

GitHubCommitCommentThread

A thread of comments on a commit.

GitHubCommitConnection

The connection type for Commit.

GitHubCommitEdge

An edge in a connection.

GitHubCommitHistoryConnection

The connection type for Commit.

GitHubDeployment

Represents triggered deployment instance.

GitHubHeadRefForcePushedEvent

Represents a 'head_ref_force_pushed' event on a given pull request.

GitHubMergeBranchPayload

Autogenerated return type of MergeBranch

GitHubMergedEvent

Represents a 'merged' event on a given pull request.

GitHubPullRequest

A repository pull request.

GitHubPullRequestCommit

Represents a Git commit part of a pull request.

GitHubPullRequestCommitCommentThread

Represents a commit comment thread part of a pull request.

GitHubPullRequestReview

A review object for a given pull request.

GitHubPullRequestReviewComment

A review comment associated with a given repository pull request.

GitHubPullRequestRevisionMarker

Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits.

GitHubReferencedEvent

Represents a 'referenced' event on a given ReferencedSubject.

GitHubRelease

A release contains the content for a release.

GitHubStatus

Represents a commit status.

GitHubStatusCheckRollup

Represents the rollup for both the check runs and status for a commit.

GitHubStatusContext

Represents an individual commit status context

____________________________________________________________________________________________________