Commits

Reference documentation for GraphQL schema types in the Commits category.

Commit - object

Represents a Git commit.

Implements: GitObject, Node, Subscribable, UniformResourceLocatable

Fields for Commit

CommitAuthor - input object

Specifies an author for filtering Git commits.

Input fields for CommitAuthor

CommitAuthorEmailPatternParameters - object

Parameters to be used for the commit_author_email_pattern rule.

Fields for CommitAuthorEmailPatternParameters

CommitAuthorEmailPatternParametersInput - input object

Parameters to be used for the commit_author_email_pattern rule.

Input fields for CommitAuthorEmailPatternParametersInput

CommitComment - object

Represents a comment on a given Commit.

Implements: Comment, Deletable, Minimizable, Node, Reactable, RepositoryNode, Updatable, UpdatableComment

Fields for CommitComment

CommitCommentConnection - object

The connection type for CommitComment.

Fields for CommitCommentConnection

CommitCommentEdge - object

An edge in a connection.

Fields for CommitCommentEdge

CommitCommentThread - object

A thread of comments on a commit.

Implements: Node, RepositoryNode

Fields for CommitCommentThread

CommitConnection - object

The connection type for Commit.

Fields for CommitConnection

CommitContributionOrder - input object

Ordering options for commit contribution connections.

Input fields for CommitContributionOrder

CommitContributionOrderField - enum

Properties by which commit contribution connections can be ordered.

Values for CommitContributionOrderField

CommitContributionsByRepository - object

This aggregates commits made by a user within one repository.

Fields for CommitContributionsByRepository

CommitEdge - object

An edge in a connection.

Fields for CommitEdge

CommitHistoryConnection - object

The connection type for Commit.

Fields for CommitHistoryConnection

CommitMessage - input object

A message to include with a new commit.

Input fields for CommitMessage

CommitMessagePatternParameters - object

Parameters to be used for the commit_message_pattern rule.

Fields for CommitMessagePatternParameters

CommitMessagePatternParametersInput - input object

Parameters to be used for the commit_message_pattern rule.

Input fields for CommitMessagePatternParametersInput

CommitterEmailPatternParameters - object

Parameters to be used for the committer_email_pattern rule.

Fields for CommitterEmailPatternParameters

CommitterEmailPatternParametersInput - input object

Parameters to be used for the committer_email_pattern rule.

Input fields for CommitterEmailPatternParametersInput

Comparison - object

Represents a comparison between two commit revisions.

Implements: Node

Fields for Comparison

ComparisonCommitConnection - object

The connection type for Commit.

Fields for ComparisonCommitConnection

ComparisonStatus - enum

The status of a git comparison between two refs.

Values for ComparisonStatus

createCommitOnBranch - mutation

Appends a commit to the given branch as the authenticated user.
This mutation creates a commit whose parent is the HEAD of the provided
branch and also updates that branch to point to the new commit.
It can be thought of as similar to git commit.
Locating a Branch
Commits are appended to a branch of type Ref.
This must refer to a git branch (i.e. the fully qualified path must
begin with refs/heads/, although including this prefix is optional.
Callers may specify the branch to commit to either by its global node
ID or by passing both of repositoryNameWithOwner and refName. For
more details see the documentation for CommittableBranch.
Describing Changes
fileChanges are specified as a FilesChanges object describing
FileAdditions and FileDeletions.
Please see the documentation for FileChanges for more information on
how to use this argument to describe any set of file changes.
Authorship
Similar to the web commit interface, this mutation does not support
specifying the author or committer of the commit and will not add
support for this in the future.
A commit created by a successful execution of this mutation will be
authored by the owner of the credential which authenticates the API
request. The committer will be identical to that of commits authored
using the web interface.
If you need full control over author and committer information, please
use the Git Database REST API instead.
Commit Signing
Commits made using this mutation are automatically signed by GitHub if
supported and will be marked as verified in the user interface.

Input fields for createCommitOnBranch

Return fields for createCommitOnBranch

CreateCommitOnBranchInput - input object

Autogenerated input type of CreateCommitOnBranch.

Input fields for CreateCommitOnBranchInput

Status - object

Represents a commit status.

Implements: Node

Fields for Status

StatusCheckConfiguration - object

Required status check.

Fields for StatusCheckConfiguration

StatusCheckConfigurationInput - input object

Required status check.

Input fields for StatusCheckConfigurationInput

StatusCheckRollup - object

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

Implements: Node

Fields for StatusCheckRollup

StatusCheckRollupContext - union

Types that can be inside a StatusCheckRollup context.

Possible types for StatusCheckRollupContext

StatusCheckRollupContextConnection - object

The connection type for StatusCheckRollupContext.

Fields for StatusCheckRollupContextConnection

StatusCheckRollupContextEdge - object

An edge in a connection.

Fields for StatusCheckRollupContextEdge

StatusContext - object

Represents an individual commit status context.

Implements: Node, RequirableByPullRequest

Fields for StatusContext

StatusContextStateCount - object

Represents a count of the state of a status context.

Fields for StatusContextStateCount

StatusState - enum

The possible commit status states.

Values for StatusState