Commit
Represents a Git commit.
Implements
Connections
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. |
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. |
CommitConnection!)
The parents of a 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. |
Fields
String!)
An abbreviated version of the Git object ID
Int!)
The number of additions in this commit.
GitActor)
Authorship details of the commit.
Boolean!)
Check if the committer and the author match.
DateTime!)
The datetime when this commit was authored.
Blame!)
Fetches git blame information.
| Argument | Type | Description |
|---|---|---|
path |
String!
|
The file whose Git blame information you want. |
Int!)
The number of changed files in this commit.
URI!)
The HTTP path for this Git object
URI!)
The HTTP URL for this Git object
DateTime!)
The datetime when this commit was committed.
Boolean!)
Check if commited via GitHub web UI.
GitActor)
Committership details of the commit.
Int!)
The number of deletions in this commit.
ID!)
String!)
The Git commit message
String!)
The Git commit message body
HTML!)
The commit message body rendered to HTML.
String!)
The Git commit message headline
HTML!)
The commit message headline rendered to HTML.
GitObjectID!)
The Git object ID
DateTime)
The datetime when this commit was pushed.
Repository!)
The Repository this commit belongs to
URI!)
The HTTP path for this commit
GitSignature)
Commit signing information, if present.
Status)
Status information for this commit
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!)
Commit's root Tree
URI!)
The HTTP path for the tree of this commit
URI!)
The HTTP URL for the tree of this commit
URI!)
The HTTP URL for this commit
Boolean!)
Check if the viewer is able to change their subscription status for the repository.
SubscriptionState!)
Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
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.
-
Overview
-
Query
-
Mutations
- acceptTopicSuggestion
- addComment
- addProjectCard
- addProjectColumn
- addPullRequestReview
- addPullRequestReviewComment
- addReaction
- addStar
- createProject
- declineTopicSuggestion
- deleteProject
- deleteProjectCard
- deleteProjectColumn
- deletePullRequestReview
- dismissPullRequestReview
- lockLockable
- moveProjectCard
- moveProjectColumn
- removeOutsideCollaborator
- removeReaction
- removeStar
- requestReviews
- submitPullRequestReview
- updateProject
- updateProjectCard
- updateProjectColumn
- updatePullRequestReview
- updatePullRequestReviewComment
- updateSubscription
- updateTopics
-
Objects
- AddedToProjectEvent
- AssignedEvent
- BaseRefChangedEvent
- BaseRefForcePushedEvent
- Blame
- BlameRange
- Blob
- Bot
- ClosedEvent
- CodeOfConduct
- CommentDeletedEvent
- Commit
- CommitComment
- CommitCommentThread
- ConvertedNoteToIssueEvent
- CrossReferencedEvent
- DemilestonedEvent
- DeployKey
- DeployedEvent
- Deployment
- DeploymentStatus
- ExternalIdentity
- ExternalIdentitySamlAttributes
- ExternalIdentityScimAttributes
- Gist
- GistComment
- GitActor
- GitHubMetadata
- GpgSignature
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- Issue
- IssueComment
- Label
- LabeledEvent
- Language
- License
- LicenseRule
- LockedEvent
- MarketplaceCategory
- MarketplaceListing
- MentionedEvent
- MergedEvent
- Milestone
- MilestonedEvent
- MovedColumnsInProjectEvent
- Organization
- OrganizationIdentityProvider
- OrganizationInvitation
- PageInfo
- Project
- ProjectCard
- ProjectColumn
- ProtectedBranch
- PublicKey
- PullRequest
- PullRequestCommit
- PullRequestReview
- PullRequestReviewComment
- PullRequestReviewThread
- PushAllowance
- RateLimit
- Reaction
- ReactionGroup
- Ref
- ReferencedEvent
- Release
- ReleaseAsset
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- Repository
- RepositoryInvitation
- RepositoryInvitationRepository
- RepositoryTopic
- ReviewDismissalAllowance
- ReviewDismissedEvent
- ReviewRequest
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- SmimeSignature
- Status
- StatusContext
- SubscribedEvent
- SuggestedReviewer
- Tag
- Team
- TextMatch
- TextMatchHighlight
- Topic
- Tree
- TreeEntry
- UnassignedEvent
- UnknownSignature
- UnlabeledEvent
- UnlockedEvent
- UnsubscribedEvent
- User
- UserContentEdit
-
Interfaces
-
Enums
- CollaboratorAffiliation
- CommentAuthorAssociation
- CommentCannotUpdateReason
- DefaultRepositoryPermissionField
- DeploymentState
- DeploymentStatusState
- GistOrderField
- GistPrivacy
- GitSignatureState
- IssueOrderField
- IssuePubSubTopic
- IssueState
- LanguageOrderField
- LockReason
- MergeableState
- MilestoneOrderField
- MilestoneState
- OrderDirection
- OrganizationInvitationRole
- OrganizationInvitationType
- ProjectCardState
- ProjectOrderField
- ProjectState
- PullRequestPubSubTopic
- PullRequestReviewEvent
- PullRequestReviewState
- PullRequestState
- ReactionContent
- ReactionOrderField
- RefOrderField
- ReleaseOrderField
- RepositoryAffiliation
- RepositoryCollaboratorAffiliation
- RepositoryContributionType
- RepositoryLockReason
- RepositoryOrderField
- RepositoryPermission
- RepositoryPrivacy
- SearchType
- StarOrderField
- StatusState
- SubscriptionState
- TeamMemberRole
- TeamMembershipType
- TeamOrderField
- TeamPrivacy
- TeamRepositoryOrderField
- TeamRole
- TopicSuggestionDeclineReason
-
Unions
-
Input Objects
-
Scalars