Schema Previews
- Deployments
- Checks
- Team discussions
- Protected Branch: Required Signatures
- Hovercards
- Protected Branch: Multiple Required Approving Reviews
- MergeInfoPreview - More detailed information about a pull request's merge state.
- Access to a Repositories Dependency Graph
- Repository Vulnerability Alerts
- Temporary Cloning Token for Private Repositories
Schema previews let you try out new features and changes to our GraphQL schema before they become part of the official GitHub API.
During the preview period, we may change some features based on developer feedback. If we do make changes, we'll announce them on the developer blog without advance notice.
To access a schema preview, you'll need to provide a custom media type in the Accept header for your requests. Feature documentation for each preview specifies which custom media type to provide.
Note: The GraphQL schema members under preview cannot be accessed via the Explorer at this time.
Deployments
This preview adds support for deployments mutations and new deployments features.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.flash-preview+json
Previewed schema members:
DeploymentStatus.environmentMutation.createDeploymentStatusMutation.createDeploymentDeploymentState.IN_PROGRESSDeploymentState.QUEUED
Checks
This preview adds support for reading checks created by GitHub Apps.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.antiope-preview+json
Previewed schema members:
CheckAnnotationRangeCheckAnnotationPositionCheckAnnotationSpanCheckAnnotationCheckAnnotationConnection.nodesCheckAnnotationDataCheckAnnotationEdge.nodeCheckAnnotationLevelCheckConclusionStateCheckStatusStateCheckSuiteAutoTriggerPreferenceCheckRunCheckRunConnection.nodesCheckRunEdge.nodeCheckRunActionCheckRunFilterCheckRunOutputCheckRunOutputImageCheckRunTypeCheckSuiteCheckSuiteConnection.nodesCheckSuiteEdge.nodeCheckSuiteFilterCommit.checkSuitesMutation.createCheckRunMutation.createCheckSuiteMutation.rerequestCheckSuiteMutation.updateCheckRunMutation.updateCheckSuitePreferencesPushRequestableCheckStatusState
Team discussions
Adds support for reading and managing discussions within teams.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.echo-preview+json
Previewed schema members:
Mutation.createTeamDiscussionMutation.createTeamDiscussionCommentMutation.deleteTeamDiscussionMutation.deleteTeamDiscussionCommentMutation.updateTeamDiscussionMutation.updateTeamDiscussionCommentTeam.discussionTeam.discussionsTeam.discussionsResourcePathTeam.discussionsUrlTeamDiscussionTeamDiscussionCommentTeamDiscussionCommentConnectionTeamDiscussionCommentEdgeTeamDiscussionCommentOrderTeamDiscussionCommentOrderFieldTeamDiscussionConnectionTeamDiscussionEdgeTeamDiscussionOrderTeamDiscussionOrderField
Protected Branch: Required Signatures
This preview adds support for reading the required signatures settings of a protected branch.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.zzzax-preview+json
Previewed schema members:
ProtectedBranch.hasRequiredSignatures
Hovercards
This preview adds support for reading hovercard contextual data
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.hagar-preview+json
Previewed schema members:
User.hovercardHovercardHovercardContextGenericHovercardContextOrganizationsHovercardContextOrganizationTeamsHovercardContext
Protected Branch: Multiple Required Approving Reviews
This preview adds support for reading the approving reviews count settings of a protected branch.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.luke-cage-preview+json
Previewed schema members:
ProtectedBranch.requiredApprovingReviewCount
MergeInfoPreview - More detailed information about a pull request's merge state.
This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.merge-info-preview+json
Previewed schema members:
PullRequest.canBeRebasedPullRequest.mergeStateStatus
Access to a Repositories Dependency Graph
This preview adds support for reading a dependency graph for a repository.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.hawkgirl-preview+json
Previewed schema members:
DependencyGraphManifestRepository.dependencyGraphManifestsDependencyGraphManifestEdgeDependencyGraphManifestConnectionDependencyGraphDependencyDependencyGraphDependencyEdgeDependencyGraphDependencyConnectionDependencyGraphPackageRelease.dependencies
Repository Vulnerability Alerts
This preview adds support for viewing vulnerability alerts for a repository.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.vixen-preview+json
Previewed schema members:
RepositoryVulnerabilityAlertRepository.vulnerabilityAlertsRepositoryVulnerabilityAlertConnectionRepositoryVulnerabilityAlertEdgeDependencyGraphDependency.vulnerabilityAlerts
Temporary Cloning Token for Private Repositories
This preview adds support for accessing a temporary token field for cloning private repositories.
To toggle this preview and access the following schema members, you must provide a custom media type in the Accept header:
application/vnd.github.daredevil-preview+json
Previewed schema members:
Repository.tempCloneToken
-
Overview
-
Query
-
Mutations
- acceptTopicSuggestion
- addComment
- addProjectCard
- addProjectColumn
- addPullRequestReview
- addPullRequestReviewComment
- addReaction
- addStar
- createCheckRun
- createCheckSuite
- createDeployment
- createDeploymentStatus
- createProject
- createTeamDiscussion
- createTeamDiscussionComment
- declineTopicSuggestion
- deleteProject
- deleteProjectCard
- deleteProjectColumn
- deletePullRequestReview
- deleteTeamDiscussion
- deleteTeamDiscussionComment
- dismissPullRequestReview
- lockLockable
- moveProjectCard
- moveProjectColumn
- removeOutsideCollaborator
- removeReaction
- removeStar
- requestReviews
- rerequestCheckSuite
- submitPullRequestReview
- unlockLockable
- updateCheckRun
- updateCheckSuitePreferences
- updateProject
- updateProjectCard
- updateProjectColumn
- updatePullRequestReview
- updatePullRequestReviewComment
- updateSubscription
- updateTeamDiscussion
- updateTeamDiscussionComment
- updateTopics
-
Objects
- AddedToProjectEvent
- App
- AssignedEvent
- BaseRefChangedEvent
- BaseRefForcePushedEvent
- Blame
- BlameRange
- Blob
- Bot
- CheckAnnotation
- CheckAnnotationPosition
- CheckAnnotationSpan
- CheckRun
- CheckSuite
- ClosedEvent
- CodeOfConduct
- CommentDeletedEvent
- Commit
- CommitComment
- CommitCommentThread
- ConvertedNoteToIssueEvent
- CrossReferencedEvent
- DemilestonedEvent
- DependencyGraphDependency
- DependencyGraphManifest
- DeployKey
- DeployedEvent
- Deployment
- DeploymentStatus
- ExternalIdentity
- ExternalIdentitySamlAttributes
- ExternalIdentityScimAttributes
- GenericHovercardContext
- Gist
- GistComment
- GitActor
- GitHubMetadata
- GpgSignature
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- Hovercard
- Issue
- IssueComment
- Label
- LabeledEvent
- Language
- License
- LicenseRule
- LockedEvent
- MarketplaceCategory
- MarketplaceListing
- MentionedEvent
- MergedEvent
- Milestone
- MilestonedEvent
- MovedColumnsInProjectEvent
- Organization
- OrganizationIdentityProvider
- OrganizationInvitation
- OrganizationTeamsHovercardContext
- OrganizationsHovercardContext
- PageInfo
- Project
- ProjectCard
- ProjectColumn
- ProtectedBranch
- PublicKey
- PullRequest
- PullRequestCommit
- PullRequestReview
- PullRequestReviewComment
- PullRequestReviewThread
- Push
- PushAllowance
- RateLimit
- Reaction
- ReactionGroup
- Ref
- ReferencedEvent
- Release
- ReleaseAsset
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- Repository
- RepositoryInvitation
- RepositoryTopic
- RepositoryVulnerabilityAlert
- ReviewDismissalAllowance
- ReviewDismissedEvent
- ReviewRequest
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- SmimeSignature
- Status
- StatusContext
- SubscribedEvent
- SuggestedReviewer
- Tag
- Team
- TeamDiscussion
- TeamDiscussionComment
- TextMatch
- TextMatchHighlight
- Topic
- Tree
- TreeEntry
- UnassignedEvent
- UnknownSignature
- UnlabeledEvent
- UnlockedEvent
- UnsubscribedEvent
- User
- UserContentEdit
-
Interfaces
-
Enums
- CheckAnnotationLevel
- CheckConclusionState
- CheckRunType
- CheckStatusState
- CollaboratorAffiliation
- CommentAuthorAssociation
- CommentCannotUpdateReason
- DeploymentState
- DeploymentStatusState
- GistOrderField
- GistPrivacy
- GitSignatureState
- IssueOrderField
- IssueState
- LanguageOrderField
- LockReason
- MergeStateStatus
- MergeableState
- MilestoneOrderField
- MilestoneState
- OrderDirection
- OrganizationInvitationRole
- OrganizationInvitationType
- ProjectCardState
- ProjectOrderField
- ProjectState
- PullRequestReviewEvent
- PullRequestReviewState
- PullRequestState
- ReactionContent
- ReactionOrderField
- RefOrderField
- ReleaseOrderField
- RepositoryAffiliation
- RepositoryContributionType
- RepositoryLockReason
- RepositoryOrderField
- RepositoryPermission
- RepositoryPrivacy
- RequestableCheckStatusState
- SearchType
- StarOrderField
- StatusState
- SubscriptionState
- TeamDiscussionCommentOrderField
- TeamDiscussionOrderField
- TeamMemberOrderField
- TeamMemberRole
- TeamMembershipType
- TeamOrderField
- TeamPrivacy
- TeamRepositoryOrderField
- TeamRole
- TopicSuggestionDeclineReason
-
Unions
-
Input Objects
- CheckAnnotationData
- CheckAnnotationRange
- CheckRunAction
- CheckRunFilter
- CheckRunOutput
- CheckRunOutputImage
- CheckSuiteAutoTriggerPreference
- CheckSuiteFilter
- CommitAuthor
- DraftPullRequestReviewComment
- GistOrder
- IssueOrder
- LanguageOrder
- MilestoneOrder
- ProjectOrder
- ReactionOrder
- RefOrder
- ReleaseOrder
- RepositoryOrder
- StarOrder
- TeamDiscussionCommentOrder
- TeamDiscussionOrder
- TeamMemberOrder
- TeamOrder
- TeamRepositoryOrder
-
Scalars

