Schema Previews

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.

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:

  • CheckAnnotation

  • CheckAnnotationConnection.nodes

  • CheckAnnotationEdge.node

  • CheckAnnotationLevel

  • CheckConclusionState

  • CheckStatusState

  • CheckRun

  • CheckRunConnection.nodes

  • CheckRunEdge.node

  • CheckRunFilter

  • CheckRunType

  • CheckSuite

  • CheckSuiteConnection.nodes

  • CheckSuiteEdge.node

  • CheckSuiteFilter

  • Commit.checkSuites

  • CreateCheckSuitePayload.checkSuite

  • RequestCheckSuitePayload.checkSuite

  • Push

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.createTeamDiscussion

  • Mutation.createTeamDiscussionComment

  • Mutation.deleteTeamDiscussion

  • Mutation.deleteTeamDiscussionComment

  • Mutation.updateTeamDiscussion

  • Mutation.updateTeamDiscussionComment

  • Team.discussion

  • Team.discussions

  • Team.discussionsResourcePath

  • Team.discussionsUrl

  • TeamDiscussion

  • TeamDiscussionComment

  • TeamDiscussionCommentConnection

  • TeamDiscussionCommentEdge

  • TeamDiscussionCommentOrder

  • TeamDiscussionCommentOrderField

  • TeamDiscussionConnection

  • TeamDiscussionEdge

  • TeamDiscussionOrder

  • TeamDiscussionOrderField

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.hovercard

  • Hovercard

  • HovercardContext

  • GenericHovercardContext

  • OrganizationsHovercardContext

  • OrganizationTeamsHovercardContext

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.canBeRebased

  • PullRequest.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:

  • DependencyGraphManifest

  • Repository.dependencyGraphManifests

  • DependencyGraphManifestEdge

  • DependencyGraphManifestConnection

  • DependencyGraphDependency

  • DependencyGraphDependencyEdge

  • DependencyGraphDependencyConnection

  • DependencyGraphPackageRelease.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:

  • RepositoryVulnerabilityAlert

  • Repository.vulnerabilityAlerts

  • RepositoryVulnerabilityAlertConnection

  • RepositoryVulnerabilityAlertEdge

  • DependencyGraphDependency.vulnerabilityAlerts