Commit
Represents a Git commit.
Implements
Connections
PullRequestConnection)
The pull requests associated with a commit
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
PullRequestOrder
|
Ordering options for pull requests. The default value is |
CheckSuiteConnection)
This part of the schema is currently available for developers to preview. During this preview period, the API may change without any advance notice. Please see the Checks preview for more details.
Note: The GraphQL resources under preview cannot be accessed via the Explorer at this time.
The check suites associated with a commit.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
filterBy |
CheckSuiteFilter
|
Filters the check suites by this type. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
CommitCommentConnection!)
Comments made on the commit.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
DeploymentConnection)
The deployments associated with a commit.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
environments |
[String!]
|
Environments to list deployments for |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
DeploymentOrder
|
Ordering options for deployments returned from the connection. The default value is |
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 cursor. |
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 cursor. |
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 cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
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
- acceptEnterpriseAdministratorInvitation
- acceptTopicSuggestion
- addAssigneesToAssignable
- addComment
- addLabelsToLabelable
- addProjectCard
- addProjectColumn
- addPullRequestReview
- addPullRequestReviewComment
- addPullRequestReviewThread
- addReaction
- addStar
- archiveRepository
- cancelEnterpriseAdminInvitation
- changeUserStatus
- clearLabelsFromLabelable
- cloneProject
- cloneTemplateRepository
- closeIssue
- closePullRequest
- convertProjectCardNoteToIssue
- createBranchProtectionRule
- createCheckRun
- createCheckSuite
- createContentAttachment
- createDeployment
- createDeploymentStatus
- createEnterpriseOrganization
- createIssue
- createLabel
- createProject
- createPullRequest
- createRef
- createRepository
- createTeamDiscussion
- createTeamDiscussionComment
- declineTopicSuggestion
- deleteBranchProtectionRule
- deleteDeployment
- deleteIssue
- deleteIssueComment
- deleteLabel
- deletePackageVersion
- deleteProject
- deleteProjectCard
- deleteProjectColumn
- deletePullRequestReview
- deletePullRequestReviewComment
- deleteRef
- deleteTeamDiscussion
- deleteTeamDiscussionComment
- dismissPullRequestReview
- followUser
- importProject
- inviteEnterpriseAdmin
- linkRepositoryToProject
- lockLockable
- markPullRequestReadyForReview
- mergeBranch
- mergePullRequest
- minimizeComment
- moveProjectCard
- moveProjectColumn
- pinIssue
- regenerateEnterpriseIdentityProviderRecoveryCodes
- removeAssigneesFromAssignable
- removeEnterpriseAdmin
- removeEnterpriseOrganization
- removeLabelsFromLabelable
- removeOutsideCollaborator
- removeReaction
- removeStar
- reopenIssue
- reopenPullRequest
- requestReviews
- rerequestCheckSuite
- resolveReviewThread
- submitPullRequestReview
- transferIssue
- unarchiveRepository
- unfollowUser
- unlinkRepositoryFromProject
- unlockLockable
- unmarkIssueAsDuplicate
- unminimizeComment
- unpinIssue
- unresolveReviewThread
- updateBranchProtectionRule
- updateCheckRun
- updateCheckSuitePreferences
- updateEnterpriseActionExecutionCapabilitySetting
- updateEnterpriseAdministratorRole
- updateEnterpriseAllowPrivateRepositoryForkingSetting
- updateEnterpriseDefaultRepositoryPermissionSetting
- updateEnterpriseMembersCanChangeRepositoryVisibilitySetting
- updateEnterpriseMembersCanCreateRepositoriesSetting
- updateEnterpriseMembersCanDeleteIssuesSetting
- updateEnterpriseMembersCanDeleteRepositoriesSetting
- updateEnterpriseMembersCanInviteCollaboratorsSetting
- updateEnterpriseMembersCanMakePurchasesSetting
- updateEnterpriseMembersCanUpdateProtectedBranchesSetting
- updateEnterpriseMembersCanViewDependencyInsightsSetting
- updateEnterpriseOrganizationProjectsSetting
- updateEnterpriseProfile
- updateEnterpriseRepositoryProjectsSetting
- updateEnterpriseTeamDiscussionsSetting
- updateEnterpriseTwoFactorAuthenticationRequiredSetting
- updateIssue
- updateIssueComment
- updateLabel
- updateProject
- updateProjectCard
- updateProjectColumn
- updatePullRequest
- updatePullRequestReview
- updatePullRequestReviewComment
- updateRef
- updateRefs
- updateRepository
- updateSubscription
- updateTeamDiscussion
- updateTeamDiscussionComment
- updateTeamReviewAssignment
- updateTopics
-
Objects
- ActorLocation
- AddedToProjectEvent
- App
- AssignedEvent
- BaseRefChangedEvent
- BaseRefForcePushedEvent
- Blame
- BlameRange
- Blob
- Bot
- BranchProtectionRule
- BranchProtectionRuleConflict
- CheckAnnotation
- CheckAnnotationPosition
- CheckAnnotationSpan
- CheckRun
- CheckSuite
- ClosedEvent
- CodeOfConduct
- CommentDeletedEvent
- Commit
- CommitComment
- CommitCommentThread
- CommitContributionsByRepository
- ConnectedEvent
- ContentAttachment
- ContentReference
- ContributionCalendar
- ContributionCalendarDay
- ContributionCalendarMonth
- ContributionCalendarWeek
- ContributionsCollection
- ConvertedNoteToIssueEvent
- CreatedCommitContribution
- CreatedIssueContribution
- CreatedPullRequestContribution
- CreatedPullRequestReviewContribution
- CreatedRepositoryContribution
- CrossReferencedEvent
- DemilestonedEvent
- DependencyGraphDependency
- DependencyGraphManifest
- DeployKey
- DeployedEvent
- Deployment
- DeploymentEnvironmentChangedEvent
- DeploymentStatus
- DisconnectedEvent
- Enterprise
- EnterpriseAdministratorInvitation
- EnterpriseBillingInfo
- EnterpriseIdentityProvider
- EnterpriseOwnerInfo
- EnterpriseRepositoryInfo
- EnterpriseServerInstallation
- EnterpriseServerUserAccount
- EnterpriseServerUserAccountEmail
- EnterpriseServerUserAccountsUpload
- EnterpriseUserAccount
- ExternalIdentity
- ExternalIdentitySamlAttributes
- ExternalIdentityScimAttributes
- FundingLink
- GenericHovercardContext
- Gist
- GistComment
- GistFile
- GitActor
- GitHubMetadata
- GpgSignature
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- Hovercard
- Issue
- IssueComment
- IssueContributionsByRepository
- JoinedGitHubContribution
- Label
- LabeledEvent
- Language
- License
- LicenseRule
- LockedEvent
- Mannequin
- MarkedAsDuplicateEvent
- MarketplaceCategory
- MarketplaceListing
- MembersCanDeleteReposClearAuditEntry
- MembersCanDeleteReposDisableAuditEntry
- MembersCanDeleteReposEnableAuditEntry
- MentionedEvent
- MergedEvent
- Milestone
- MilestonedEvent
- MovedColumnsInProjectEvent
- OauthApplicationCreateAuditEntry
- OrgAddBillingManagerAuditEntry
- OrgAddMemberAuditEntry
- OrgBlockUserAuditEntry
- OrgConfigDisableCollaboratorsOnlyAuditEntry
- OrgConfigEnableCollaboratorsOnlyAuditEntry
- OrgCreateAuditEntry
- OrgDisableOauthAppRestrictionsAuditEntry
- OrgDisableSamlAuditEntry
- OrgDisableTwoFactorRequirementAuditEntry
- OrgEnableOauthAppRestrictionsAuditEntry
- OrgEnableSamlAuditEntry
- OrgEnableTwoFactorRequirementAuditEntry
- OrgInviteMemberAuditEntry
- OrgInviteToBusinessAuditEntry
- OrgOauthAppAccessApprovedAuditEntry
- OrgOauthAppAccessDeniedAuditEntry
- OrgOauthAppAccessRequestedAuditEntry
- OrgRemoveBillingManagerAuditEntry
- OrgRemoveMemberAuditEntry
- OrgRemoveOutsideCollaboratorAuditEntry
- OrgRestoreMemberAuditEntry
- OrgRestoreMemberMembershipOrganizationAuditEntryData
- OrgRestoreMemberMembershipRepositoryAuditEntryData
- OrgRestoreMemberMembershipTeamAuditEntryData
- OrgUnblockUserAuditEntry
- OrgUpdateDefaultRepositoryPermissionAuditEntry
- OrgUpdateMemberAuditEntry
- OrgUpdateMemberRepositoryCreationPermissionAuditEntry
- OrgUpdateMemberRepositoryInvitationPermissionAuditEntry
- Organization
- OrganizationIdentityProvider
- OrganizationInvitation
- OrganizationTeamsHovercardContext
- OrganizationsHovercardContext
- Package
- PackageFile
- PackageStatistics
- PackageTag
- PackageVersion
- PackageVersionStatistics
- PageInfo
- PermissionSource
- PinnedEvent
- PinnedIssue
- PrivateRepositoryForkingDisableAuditEntry
- PrivateRepositoryForkingEnableAuditEntry
- ProfileItemShowcase
- Project
- ProjectCard
- ProjectColumn
- PublicKey
- PullRequest
- PullRequestChangedFile
- PullRequestCommit
- PullRequestCommitCommentThread
- PullRequestContributionsByRepository
- PullRequestReview
- PullRequestReviewComment
- PullRequestReviewContributionsByRepository
- PullRequestReviewThread
- PullRequestRevisionMarker
- Push
- PushAllowance
- RateLimit
- Reaction
- ReactionGroup
- ReadyForReviewEvent
- Ref
- ReferencedEvent
- RegistryPackage
- RegistryPackageDependency
- RegistryPackageFile
- RegistryPackageStatistics
- RegistryPackageTag
- RegistryPackageVersion
- RegistryPackageVersionStatistics
- Release
- ReleaseAsset
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- RepoAccessAuditEntry
- RepoAddMemberAuditEntry
- RepoAddTopicAuditEntry
- RepoArchivedAuditEntry
- RepoChangeMergeSettingAuditEntry
- RepoConfigDisableAnonymousGitAccessAuditEntry
- RepoConfigDisableCollaboratorsOnlyAuditEntry
- RepoConfigDisableContributorsOnlyAuditEntry
- RepoConfigDisableSockpuppetDisallowedAuditEntry
- RepoConfigEnableAnonymousGitAccessAuditEntry
- RepoConfigEnableCollaboratorsOnlyAuditEntry
- RepoConfigEnableContributorsOnlyAuditEntry
- RepoConfigEnableSockpuppetDisallowedAuditEntry
- RepoConfigLockAnonymousGitAccessAuditEntry
- RepoConfigUnlockAnonymousGitAccessAuditEntry
- RepoCreateAuditEntry
- RepoDestroyAuditEntry
- RepoRemoveMemberAuditEntry
- RepoRemoveTopicAuditEntry
- Repository
- RepositoryInvitation
- RepositoryTopic
- RepositoryVisibilityChangeDisableAuditEntry
- RepositoryVisibilityChangeEnableAuditEntry
- RepositoryVulnerabilityAlert
- RestrictedContribution
- ReviewDismissalAllowance
- ReviewDismissedEvent
- ReviewRequest
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- ReviewStatusHovercardContext
- SavedReply
- SecurityAdvisory
- SecurityAdvisoryIdentifier
- SecurityAdvisoryPackage
- SecurityAdvisoryPackageVersion
- SecurityAdvisoryReference
- SecurityVulnerability
- SmimeSignature
- SponsorsListing
- SponsorsTier
- SponsorsTierAdminInfo
- Sponsorship
- Status
- StatusContext
- SubscribedEvent
- SuggestedReviewer
- Tag
- Team
- TeamAddMemberAuditEntry
- TeamAddRepositoryAuditEntry
- TeamChangeParentTeamAuditEntry
- TeamDiscussion
- TeamDiscussionComment
- TeamRemoveMemberAuditEntry
- TeamRemoveRepositoryAuditEntry
- TextMatch
- TextMatchHighlight
- Topic
- TransferredEvent
- Tree
- TreeEntry
- UnassignedEvent
- UnknownSignature
- UnlabeledEvent
- UnlockedEvent
- UnmarkedAsDuplicateEvent
- UnpinnedEvent
- UnsubscribedEvent
- User
- UserBlockedEvent
- UserContentEdit
- UserStatus
- ViewerHovercardContext
-
Interfaces
- Actor
- Assignable
- AuditEntry
- Closable
- Comment
- Contribution
- Deletable
- EnterpriseAuditEntryData
- GitObject
- GitSignature
- HovercardContext
- Labelable
- Lockable
- MemberStatusable
- Minimizable
- Node
- OauthApplicationAuditEntryData
- OrganizationAuditEntryData
- PackageOwner
- ProfileOwner
- ProjectOwner
- Reactable
- RegistryPackageOwner
- RegistryPackageSearch
- RepositoryAuditEntryData
- RepositoryInfo
- RepositoryNode
- RepositoryOwner
- Sponsorable
- Starrable
- Subscribable
- TeamAuditEntryData
- TopicAuditEntryData
- UniformResourceLocatable
- Updatable
- UpdatableComment
-
Enums
- ActionExecutionCapabilitySetting
- AuditLogOrderField
- CheckAnnotationLevel
- CheckConclusionState
- CheckRunType
- CheckStatusState
- CollaboratorAffiliation
- CommentAuthorAssociation
- CommentCannotUpdateReason
- CommitContributionOrderField
- ContributionOrderField
- DefaultRepositoryPermissionField
- DeploymentOrderField
- DeploymentState
- DeploymentStatusState
- DiffSide
- EnterpriseAdministratorInvitationOrderField
- EnterpriseAdministratorRole
- EnterpriseDefaultRepositoryPermissionSettingValue
- EnterpriseEnabledDisabledSettingValue
- EnterpriseEnabledSettingValue
- EnterpriseMemberOrderField
- EnterpriseMembersCanCreateRepositoriesSettingValue
- EnterpriseMembersCanMakePurchasesSettingValue
- EnterpriseServerInstallationOrderField
- EnterpriseServerUserAccountEmailOrderField
- EnterpriseServerUserAccountOrderField
- EnterpriseServerUserAccountsUploadOrderField
- EnterpriseServerUserAccountsUploadSyncState
- EnterpriseUserAccountMembershipRole
- EnterpriseUserDeployment
- FundingPlatform
- GistOrderField
- GistPrivacy
- GitSignatureState
- IdentityProviderConfigurationState
- IssueOrderField
- IssueState
- IssueTimelineItemsItemType
- LabelOrderField
- LanguageOrderField
- LockReason
- MergeStateStatus
- MergeableState
- MilestoneOrderField
- MilestoneState
- OauthApplicationCreateAuditEntryState
- OperationType
- OrderDirection
- OrgAddMemberAuditEntryPermission
- OrgCreateAuditEntryBillingPlan
- OrgRemoveBillingManagerAuditEntryReason
- OrgRemoveMemberAuditEntryMembershipType
- OrgRemoveMemberAuditEntryReason
- OrgRemoveOutsideCollaboratorAuditEntryMembershipType
- OrgRemoveOutsideCollaboratorAuditEntryReason
- OrgUpdateDefaultRepositoryPermissionAuditEntryPermission
- OrgUpdateMemberAuditEntryPermission
- OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility
- OrganizationInvitationRole
- OrganizationInvitationType
- OrganizationMemberRole
- OrganizationMembersCanCreateRepositoriesSettingValue
- OrganizationOrderField
- PackageFileOrderField
- PackageOrderField
- PackageType
- PackageVersionOrderField
- PinnableItemType
- ProjectCardArchivedState
- ProjectCardState
- ProjectColumnPurpose
- ProjectOrderField
- ProjectState
- ProjectTemplate
- PullRequestMergeMethod
- PullRequestOrderField
- PullRequestReviewCommentState
- PullRequestReviewEvent
- PullRequestReviewState
- PullRequestState
- PullRequestTimelineItemsItemType
- PullRequestUpdateState
- ReactionContent
- ReactionOrderField
- RefOrderField
- RegistryPackageDependencyType
- RegistryPackageType
- ReleaseOrderField
- RepoAccessAuditEntryVisibility
- RepoAddMemberAuditEntryVisibility
- RepoArchivedAuditEntryVisibility
- RepoChangeMergeSettingAuditEntryMergeType
- RepoCreateAuditEntryVisibility
- RepoDestroyAuditEntryVisibility
- RepoRemoveMemberAuditEntryVisibility
- ReportedContentClassifiers
- RepositoryAffiliation
- RepositoryContributionType
- RepositoryInvitationOrderField
- RepositoryLockReason
- RepositoryOrderField
- RepositoryPermission
- RepositoryPrivacy
- RepositoryVisibility
- RequestableCheckStatusState
- SamlDigestAlgorithm
- SamlSignatureAlgorithm
- SavedReplyOrderField
- SearchType
- SecurityAdvisoryEcosystem
- SecurityAdvisoryIdentifierType
- SecurityAdvisoryOrderField
- SecurityAdvisorySeverity
- SecurityVulnerabilityOrderField
- SponsorsTierOrderField
- SponsorshipOrderField
- SponsorshipPrivacy
- StarOrderField
- StatusState
- SubscriptionState
- TeamDiscussionCommentOrderField
- TeamDiscussionOrderField
- TeamMemberOrderField
- TeamMemberRole
- TeamMembershipType
- TeamOrderField
- TeamPrivacy
- TeamRepositoryOrderField
- TeamReviewAssignmentAlgorithm
- TeamRole
- TopicSuggestionDeclineReason
- UserBlockDuration
- UserStatusOrderField
-
Unions
- Assignee
- AuditEntryActor
- Closer
- CreatedIssueOrRestrictedContribution
- CreatedPullRequestOrRestrictedContribution
- CreatedRepositoryOrRestrictedContribution
- EnterpriseMember
- IssueOrPullRequest
- IssueTimelineItem
- IssueTimelineItems
- MentionableItem
- MilestoneItem
- OrgRestoreMemberAuditEntryMembership
- OrganizationAuditEntry
- PermissionGranter
- PinnableItem
- ProjectCardItem
- PullRequestTimelineItem
- PullRequestTimelineItems
- PushAllowanceActor
- ReferencedSubject
- RenamedTitleSubject
- RequestedReviewer
- ReviewDismissalAllowanceActor
- SearchResultItem
-
Input Objects
- AuditLogOrder
- CheckAnnotationData
- CheckAnnotationRange
- CheckRunAction
- CheckRunFilter
- CheckRunOutput
- CheckRunOutputImage
- CheckSuiteAutoTriggerPreference
- CheckSuiteFilter
- CommitAuthor
- CommitContributionOrder
- ContributionOrder
- DeploymentOrder
- DraftPullRequestReviewComment
- DraftPullRequestReviewThread
- EnterpriseAdministratorInvitationOrder
- EnterpriseMemberOrder
- EnterpriseServerInstallationOrder
- EnterpriseServerUserAccountEmailOrder
- EnterpriseServerUserAccountOrder
- EnterpriseServerUserAccountsUploadOrder
- GistOrder
- IssueFilters
- IssueOrder
- LabelOrder
- LanguageOrder
- MilestoneOrder
- OrganizationOrder
- PackageFileOrder
- PackageOrder
- PackageVersionOrder
- ProjectCardImport
- ProjectColumnImport
- ProjectOrder
- PullRequestOrder
- ReactionOrder
- RefOrder
- RefUpdate
- RegistryPackageMetadatum
- ReleaseOrder
- RepositoryInvitationOrder
- RepositoryOrder
- SavedReplyOrder
- SecurityAdvisoryIdentifierFilter
- SecurityAdvisoryOrder
- SecurityVulnerabilityOrder
- SponsorsTierOrder
- SponsorshipOrder
- StarOrder
- TeamDiscussionCommentOrder
- TeamDiscussionOrder
- TeamMemberOrder
- TeamOrder
- TeamRepositoryOrder
- UserStatusOrder
-
Scalars