diff --git a/content/graphql/overview/changelog.md b/content/graphql/overview/changelog.md index 06eba7b59e..82d48a03a3 100644 --- a/content/graphql/overview/changelog.md +++ b/content/graphql/overview/changelog.md @@ -5,9 +5,6 @@ redirect_from: - /v4/changelog versions: fpt: '*' - ghec: '*' - ghes: '*' - ghae: '*' topics: - API autogenerated: true diff --git a/pages/[versionId]/graphql/overview/changelog.tsx b/pages/[versionId]/graphql/overview/changelog.tsx index ec479c9575..eef79a5c56 100644 --- a/pages/[versionId]/graphql/overview/changelog.tsx +++ b/pages/[versionId]/graphql/overview/changelog.tsx @@ -33,7 +33,8 @@ export default function GraphqlChangelog({ mainContext, schema, automatedPageCon export const getServerSideProps: GetServerSideProps = async (context) => { const req = context.req as any const res = context.res as any - const schema = getGraphqlChangelog() as ChangelogItemT[] + const currentVersion = context.query.versionId as string + const schema = getGraphqlChangelog(currentVersion) as ChangelogItemT[] if (!schema) throw new Error('No graphql free-pro-team changelog schema found.') // Gets the miniTocItems in the article context. At this point it will only // include miniTocItems that exist in Markdown pages in diff --git a/src/graphql/data/changelog.json b/src/graphql/data/dotcom/changelog.json similarity index 100% rename from src/graphql/data/changelog.json rename to src/graphql/data/dotcom/changelog.json diff --git a/src/graphql/data/dotcom/previews.json b/src/graphql/data/dotcom/previews.json new file mode 100644 index 0000000000..0bd68020a4 --- /dev/null +++ b/src/graphql/data/dotcom/previews.json @@ -0,0 +1,149 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Access to a repository s dependency graph preview", + "description": "This preview adds support for reading a dependency graph for a repository.", + "toggled_by": "hawkgirl-preview", + "toggled_on": [ + "DependencyGraphManifest", + "Repository.dependencyGraphManifests", + "DependencyGraphManifestEdge", + "DependencyGraphManifestConnection", + "DependencyGraphDependency", + "DependencyGraphDependencyEdge", + "DependencyGraphDependencyConnection", + "DependencyGraphPackageRelease.dependencies" + ], + "owning_teams": [ + "@github/dependency-graph" + ], + "accept_header": "application/vnd.github.hawkgirl-preview+json", + "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-dotcom.json b/src/graphql/data/dotcom/schema.json similarity index 100% rename from src/graphql/data/schema-dotcom.json rename to src/graphql/data/dotcom/schema.json diff --git a/src/graphql/data/dotcom/upcoming-changes.json b/src/graphql/data/dotcom/upcoming-changes.json new file mode 100644 index 0000000000..78b9e54781 --- /dev/null +++ b/src/graphql/data/dotcom/upcoming-changes.json @@ -0,0 +1,320 @@ +{ + "2023-07-01": [ + { + "location": "ProjectV2ItemFieldGroup.field", + "description": "

field will be removed. Check out the ProjectV2ItemFieldGroup#groupByField API as an example for the more capable alternative.

", + "reason": "

The ProjectV2ItemFieldGroup#field API is deprecated in favour of the more capable ProjectV2ItemFieldGroup#groupByField API.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "stevepopovich" + }, + { + "location": "MergeQueueEntry.isSolo", + "description": "

isSolo will be removed. Use solo instead.

", + "reason": "

isSolo will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.headOid", + "description": "

headOid will be removed. Use headCommit instead.

", + "reason": "

headOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.hasJumpedQueue", + "description": "

hasJumpedQueue will be removed. Use jump instead.

", + "reason": "

hasJumpedQueue will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.checkStatus", + "description": "

checkStatus will be removed. Use state instead.

", + "reason": "

checkStatus will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.blockedByMergeConflicts", + "description": "

blockedByMergeConflicts will be removed. Use state instead.

", + "reason": "

blockedByMergeConflicts will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.baseOid", + "description": "

baseOid will be removed. Use baseCommit instead.

", + "reason": "

baseOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.pendingRemovalEntries", + "description": "

pendingRemovalEntries will be removed.

", + "reason": "

pendingRemovalEntries will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.mergingEntries", + "description": "

mergingEntries will be removed.

", + "reason": "

mergingEntries will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.mergeMethod", + "description": "

mergeMethod will be removed. Use configuration.merge_method instead.

", + "reason": "

mergeMethod will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.headOid", + "description": "

headOid will be removed. Use entry.headOid instead.

", + "reason": "

headOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + } + ], + "2023-04-01": [ + { + "location": "RepositoryVulnerabilityAlert.fixReason", + "description": "

fixReason will be removed.

", + "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "jamestran201" + }, + { + "location": "Repository.squashPrTitleUsedAsDefault", + "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", + "reason": "

squashPrTitleUsedAsDefault will be removed.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "github/pull_requests" + }, + { + "location": "ProjectV2View.verticalGroupBy", + "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.sortBy", + "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.groupBy", + "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "alcere" + } + ], + "2023-02-10": [ + { + "location": "PackageType.MAVEN", + "description": "

MAVEN will be removed.

", + "reason": "

MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2023-02-10", + "criticality": "breaking", + "owner": "ankitkaushal01" + } + ], + "2023-01-01": [ + { + "location": "ProjectV2View.visibleFields", + "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "mattruggio" + }, + { + "location": "Commit.changedFiles", + "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", + "reason": "

changedFiles will be removed.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "adamshwert" + } + ], + "2022-12-28": [ + { + "location": "PackageType.RUBYGEMS", + "description": "

RUBYGEMS will be removed.

", + "reason": "

RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-12-28", + "criticality": "breaking", + "owner": "ankitkaushal01" + } + ], + "2022-11-21": [ + { + "location": "PackageType.NUGET", + "description": "

NUGET will be removed.

", + "reason": "

NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-11-21", + "criticality": "breaking", + "owner": "s-anupam" + }, + { + "location": "PackageType.NPM", + "description": "

NPM will be removed.

", + "reason": "

NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-11-21", + "criticality": "breaking", + "owner": "s-anupam" + } + ], + "2022-10-01": [ + { + "location": "RemovePullRequestFromMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "DependencyGraphDependency.packageLabel", + "description": "

packageLabel will be removed. Use normalized packageName field instead.

", + "reason": "

packageLabel will be removed.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "github/dependency_graph" + } + ], + "2022-07-01": [ + { + "location": "Query.sponsorables.dependencyEcosystem", + "description": "

dependencyEcosystem will be removed. Use the ecosystem argument instead.

", + "reason": "

The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem.

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "cheshire137" + }, + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + } + ], + "2020-10-01": [ + { + "location": "Sponsorship.sponsor", + "description": "

sponsor will be removed. Use Sponsorship.sponsorEntity instead.

", + "reason": "

Sponsorship.sponsor will be removed.

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "nholden" + }, + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-04-01": [ + { + "location": "Sponsorship.maintainer", + "description": "

maintainer will be removed. Use Sponsorship.sponsorable instead.

", + "reason": "

Sponsorship.maintainer will be removed.

", + "date": "2020-04-01", + "criticality": "breaking", + "owner": "antn" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghae/previews.json b/src/graphql/data/ghae/previews.json new file mode 100644 index 0000000000..0bd68020a4 --- /dev/null +++ b/src/graphql/data/ghae/previews.json @@ -0,0 +1,149 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Access to a repository s dependency graph preview", + "description": "This preview adds support for reading a dependency graph for a repository.", + "toggled_by": "hawkgirl-preview", + "toggled_on": [ + "DependencyGraphManifest", + "Repository.dependencyGraphManifests", + "DependencyGraphManifestEdge", + "DependencyGraphManifestConnection", + "DependencyGraphDependency", + "DependencyGraphDependencyEdge", + "DependencyGraphDependencyConnection", + "DependencyGraphPackageRelease.dependencies" + ], + "owning_teams": [ + "@github/dependency-graph" + ], + "accept_header": "application/vnd.github.hawkgirl-preview+json", + "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghae.json b/src/graphql/data/ghae/schema.json similarity index 100% rename from src/graphql/data/schema-ghae.json rename to src/graphql/data/ghae/schema.json diff --git a/src/graphql/data/ghae/upcoming-changes.json b/src/graphql/data/ghae/upcoming-changes.json new file mode 100644 index 0000000000..1037485d1f --- /dev/null +++ b/src/graphql/data/ghae/upcoming-changes.json @@ -0,0 +1,294 @@ +{ + "2023-07-01": [ + { + "location": "ProjectV2ItemFieldGroup.field", + "description": "

field will be removed. Check out the ProjectV2ItemFieldGroup#groupByField API as an example for the more capable alternative.

", + "reason": "

The ProjectV2ItemFieldGroup#field API is deprecated in favour of the more capable ProjectV2ItemFieldGroup#groupByField API.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "stevepopovich" + }, + { + "location": "MergeQueueEntry.isSolo", + "description": "

isSolo will be removed. Use solo instead.

", + "reason": "

isSolo will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.headOid", + "description": "

headOid will be removed. Use headCommit instead.

", + "reason": "

headOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.hasJumpedQueue", + "description": "

hasJumpedQueue will be removed. Use jump instead.

", + "reason": "

hasJumpedQueue will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.checkStatus", + "description": "

checkStatus will be removed. Use state instead.

", + "reason": "

checkStatus will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.blockedByMergeConflicts", + "description": "

blockedByMergeConflicts will be removed. Use state instead.

", + "reason": "

blockedByMergeConflicts will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.baseOid", + "description": "

baseOid will be removed. Use baseCommit instead.

", + "reason": "

baseOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.pendingRemovalEntries", + "description": "

pendingRemovalEntries will be removed.

", + "reason": "

pendingRemovalEntries will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.mergingEntries", + "description": "

mergingEntries will be removed.

", + "reason": "

mergingEntries will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.mergeMethod", + "description": "

mergeMethod will be removed. Use configuration.merge_method instead.

", + "reason": "

mergeMethod will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.headOid", + "description": "

headOid will be removed. Use entry.headOid instead.

", + "reason": "

headOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + } + ], + "2023-04-01": [ + { + "location": "RepositoryVulnerabilityAlert.fixReason", + "description": "

fixReason will be removed.

", + "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "jamestran201" + }, + { + "location": "Repository.squashPrTitleUsedAsDefault", + "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", + "reason": "

squashPrTitleUsedAsDefault will be removed.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "github/pull_requests" + }, + { + "location": "ProjectV2View.verticalGroupBy", + "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.sortBy", + "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.groupBy", + "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "alcere" + } + ], + "2023-02-10": [ + { + "location": "PackageType.MAVEN", + "description": "

MAVEN will be removed.

", + "reason": "

MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2023-02-10", + "criticality": "breaking", + "owner": "ankitkaushal01" + } + ], + "2023-01-01": [ + { + "location": "ProjectV2View.visibleFields", + "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "mattruggio" + }, + { + "location": "Commit.changedFiles", + "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", + "reason": "

changedFiles will be removed.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "adamshwert" + } + ], + "2022-12-28": [ + { + "location": "PackageType.RUBYGEMS", + "description": "

RUBYGEMS will be removed.

", + "reason": "

RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-12-28", + "criticality": "breaking", + "owner": "ankitkaushal01" + } + ], + "2022-11-21": [ + { + "location": "PackageType.NUGET", + "description": "

NUGET will be removed.

", + "reason": "

NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-11-21", + "criticality": "breaking", + "owner": "s-anupam" + }, + { + "location": "PackageType.NPM", + "description": "

NPM will be removed.

", + "reason": "

NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-11-21", + "criticality": "breaking", + "owner": "s-anupam" + } + ], + "2022-10-01": [ + { + "location": "RemovePullRequestFromMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "DependencyGraphDependency.packageLabel", + "description": "

packageLabel will be removed. Use normalized packageName field instead.

", + "reason": "

packageLabel will be removed.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "github/dependency_graph" + } + ], + "2022-07-01": [ + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + } + ], + "2020-10-01": [ + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghec/previews.json b/src/graphql/data/ghec/previews.json new file mode 100644 index 0000000000..0bd68020a4 --- /dev/null +++ b/src/graphql/data/ghec/previews.json @@ -0,0 +1,149 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Access to a repository s dependency graph preview", + "description": "This preview adds support for reading a dependency graph for a repository.", + "toggled_by": "hawkgirl-preview", + "toggled_on": [ + "DependencyGraphManifest", + "Repository.dependencyGraphManifests", + "DependencyGraphManifestEdge", + "DependencyGraphManifestConnection", + "DependencyGraphDependency", + "DependencyGraphDependencyEdge", + "DependencyGraphDependencyConnection", + "DependencyGraphPackageRelease.dependencies" + ], + "owning_teams": [ + "@github/dependency-graph" + ], + "accept_header": "application/vnd.github.hawkgirl-preview+json", + "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghec.json b/src/graphql/data/ghec/schema.json similarity index 100% rename from src/graphql/data/schema-ghec.json rename to src/graphql/data/ghec/schema.json diff --git a/src/graphql/data/ghec/upcoming-changes.json b/src/graphql/data/ghec/upcoming-changes.json new file mode 100644 index 0000000000..78b9e54781 --- /dev/null +++ b/src/graphql/data/ghec/upcoming-changes.json @@ -0,0 +1,320 @@ +{ + "2023-07-01": [ + { + "location": "ProjectV2ItemFieldGroup.field", + "description": "

field will be removed. Check out the ProjectV2ItemFieldGroup#groupByField API as an example for the more capable alternative.

", + "reason": "

The ProjectV2ItemFieldGroup#field API is deprecated in favour of the more capable ProjectV2ItemFieldGroup#groupByField API.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "stevepopovich" + }, + { + "location": "MergeQueueEntry.isSolo", + "description": "

isSolo will be removed. Use solo instead.

", + "reason": "

isSolo will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.headOid", + "description": "

headOid will be removed. Use headCommit instead.

", + "reason": "

headOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.hasJumpedQueue", + "description": "

hasJumpedQueue will be removed. Use jump instead.

", + "reason": "

hasJumpedQueue will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.checkStatus", + "description": "

checkStatus will be removed. Use state instead.

", + "reason": "

checkStatus will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.blockedByMergeConflicts", + "description": "

blockedByMergeConflicts will be removed. Use state instead.

", + "reason": "

blockedByMergeConflicts will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueueEntry.baseOid", + "description": "

baseOid will be removed. Use baseCommit instead.

", + "reason": "

baseOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.pendingRemovalEntries", + "description": "

pendingRemovalEntries will be removed.

", + "reason": "

pendingRemovalEntries will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.mergingEntries", + "description": "

mergingEntries will be removed.

", + "reason": "

mergingEntries will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.mergeMethod", + "description": "

mergeMethod will be removed. Use configuration.merge_method instead.

", + "reason": "

mergeMethod will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + }, + { + "location": "MergeQueue.headOid", + "description": "

headOid will be removed. Use entry.headOid instead.

", + "reason": "

headOid will be removed.

", + "date": "2023-07-01", + "criticality": "breaking", + "owner": "github/merge_queue" + } + ], + "2023-04-01": [ + { + "location": "RepositoryVulnerabilityAlert.fixReason", + "description": "

fixReason will be removed.

", + "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "jamestran201" + }, + { + "location": "Repository.squashPrTitleUsedAsDefault", + "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", + "reason": "

squashPrTitleUsedAsDefault will be removed.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "github/pull_requests" + }, + { + "location": "ProjectV2View.verticalGroupBy", + "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.sortBy", + "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.groupBy", + "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "alcere" + } + ], + "2023-02-10": [ + { + "location": "PackageType.MAVEN", + "description": "

MAVEN will be removed.

", + "reason": "

MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2023-02-10", + "criticality": "breaking", + "owner": "ankitkaushal01" + } + ], + "2023-01-01": [ + { + "location": "ProjectV2View.visibleFields", + "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "mattruggio" + }, + { + "location": "Commit.changedFiles", + "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", + "reason": "

changedFiles will be removed.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "adamshwert" + } + ], + "2022-12-28": [ + { + "location": "PackageType.RUBYGEMS", + "description": "

RUBYGEMS will be removed.

", + "reason": "

RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-12-28", + "criticality": "breaking", + "owner": "ankitkaushal01" + } + ], + "2022-11-21": [ + { + "location": "PackageType.NUGET", + "description": "

NUGET will be removed.

", + "reason": "

NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-11-21", + "criticality": "breaking", + "owner": "s-anupam" + }, + { + "location": "PackageType.NPM", + "description": "

NPM will be removed.

", + "reason": "

NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2022-11-21", + "criticality": "breaking", + "owner": "s-anupam" + } + ], + "2022-10-01": [ + { + "location": "RemovePullRequestFromMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "DependencyGraphDependency.packageLabel", + "description": "

packageLabel will be removed. Use normalized packageName field instead.

", + "reason": "

packageLabel will be removed.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "github/dependency_graph" + } + ], + "2022-07-01": [ + { + "location": "Query.sponsorables.dependencyEcosystem", + "description": "

dependencyEcosystem will be removed. Use the ecosystem argument instead.

", + "reason": "

The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem.

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "cheshire137" + }, + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + } + ], + "2020-10-01": [ + { + "location": "Sponsorship.sponsor", + "description": "

sponsor will be removed. Use Sponsorship.sponsorEntity instead.

", + "reason": "

Sponsorship.sponsor will be removed.

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "nholden" + }, + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-04-01": [ + { + "location": "Sponsorship.maintainer", + "description": "

maintainer will be removed. Use Sponsorship.sponsorable instead.

", + "reason": "

Sponsorship.maintainer will be removed.

", + "date": "2020-04-01", + "criticality": "breaking", + "owner": "antn" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghes-3.4/previews.json b/src/graphql/data/ghes-3.4/previews.json new file mode 100644 index 0000000000..bc9a06987b --- /dev/null +++ b/src/graphql/data/ghes-3.4/previews.json @@ -0,0 +1,129 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghes-3.4.json b/src/graphql/data/ghes-3.4/schema.json similarity index 100% rename from src/graphql/data/schema-ghes-3.4.json rename to src/graphql/data/ghes-3.4/schema.json diff --git a/src/graphql/data/ghes-3.4/upcoming-changes.json b/src/graphql/data/ghes-3.4/upcoming-changes.json new file mode 100644 index 0000000000..1676ce8b9f --- /dev/null +++ b/src/graphql/data/ghes-3.4/upcoming-changes.json @@ -0,0 +1,144 @@ +{ + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + }, + { + "location": "EnterprisePendingCollaboratorEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All pending collaborators consume a license

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + }, + { + "location": "EnterpriseOutsideCollaboratorEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All outside collaborators consume a license

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + }, + { + "location": "EnterpriseMemberEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All members consume a license

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + } + ], + "2020-10-01": [ + { + "location": "RepositoryInvitationOrderField.INVITEE_LOGIN", + "description": "

INVITEE_LOGIN will be removed.

", + "reason": "

INVITEE_LOGIN is no longer a valid field value. Repository invitations can now be associated with an email, not only an invitee.

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "jdennes" + }, + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "EnterpriseOwnerInfo.pendingCollaborators", + "description": "

pendingCollaborators will be removed. Use the pendingCollaboratorInvitations field instead.

", + "reason": "

Repository invitations can now be associated with an email, not only an invitee.

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "jdennes" + } + ], + "2020-07-01": [ + { + "location": "EnterprisePendingMemberInvitationEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All pending members consume a license

", + "date": "2020-07-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "EnterpriseBillingInfo.seats", + "description": "

seats will be removed. Use EnterpriseBillingInfo.totalLicenses instead.

", + "reason": "

seats will be replaced with totalLicenses to provide more clarity on the value being returned

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "BlakeWilliams" + }, + { + "location": "EnterpriseBillingInfo.availableSeats", + "description": "

availableSeats will be removed. Use EnterpriseBillingInfo.totalAvailableLicenses instead.

", + "reason": "

availableSeats will be replaced with totalAvailableLicenses to provide more clarity on the value being returned

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "BlakeWilliams" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghes-3.5/previews.json b/src/graphql/data/ghes-3.5/previews.json new file mode 100644 index 0000000000..bc9a06987b --- /dev/null +++ b/src/graphql/data/ghes-3.5/previews.json @@ -0,0 +1,129 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghes-3.5.json b/src/graphql/data/ghes-3.5/schema.json similarity index 100% rename from src/graphql/data/schema-ghes-3.5.json rename to src/graphql/data/ghes-3.5/schema.json diff --git a/src/graphql/data/ghes-3.5/upcoming-changes.json b/src/graphql/data/ghes-3.5/upcoming-changes.json new file mode 100644 index 0000000000..64960f34b3 --- /dev/null +++ b/src/graphql/data/ghes-3.5/upcoming-changes.json @@ -0,0 +1,148 @@ +{ + "2022-07-01": [ + { + "location": "Enterprise.userAccounts", + "description": "

userAccounts will be removed. Use the Enterprise.members field instead.

", + "reason": "

The Enterprise.userAccounts field is being removed.

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jdennes" + }, + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2022-04-01": [ + { + "location": "Repository.defaultMergeQueue", + "description": "

defaultMergeQueue will be removed. Use Repository.mergeQueue instead.

", + "reason": "

defaultMergeQueue will be removed.

", + "date": "2022-04-01", + "criticality": "breaking", + "owner": "colinshum" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + }, + { + "location": "EnterpriseOutsideCollaboratorEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All outside collaborators consume a license

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + }, + { + "location": "EnterpriseMemberEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All members consume a license

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + } + ], + "2020-10-01": [ + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-07-01": [ + { + "location": "EnterprisePendingMemberInvitationEdge.isUnlicensed", + "description": "

isUnlicensed will be removed.

", + "reason": "

All pending members consume a license

", + "date": "2020-07-01", + "criticality": "breaking", + "owner": "BrentWheeldon" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "EnterpriseBillingInfo.seats", + "description": "

seats will be removed. Use EnterpriseBillingInfo.totalLicenses instead.

", + "reason": "

seats will be replaced with totalLicenses to provide more clarity on the value being returned

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "BlakeWilliams" + }, + { + "location": "EnterpriseBillingInfo.availableSeats", + "description": "

availableSeats will be removed. Use EnterpriseBillingInfo.totalAvailableLicenses instead.

", + "reason": "

availableSeats will be replaced with totalAvailableLicenses to provide more clarity on the value being returned

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "BlakeWilliams" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghes-3.6/previews.json b/src/graphql/data/ghes-3.6/previews.json new file mode 100644 index 0000000000..bc9a06987b --- /dev/null +++ b/src/graphql/data/ghes-3.6/previews.json @@ -0,0 +1,129 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghes-3.6.json b/src/graphql/data/ghes-3.6/schema.json similarity index 100% rename from src/graphql/data/schema-ghes-3.6.json rename to src/graphql/data/ghes-3.6/schema.json diff --git a/src/graphql/data/ghes-3.6/upcoming-changes.json b/src/graphql/data/ghes-3.6/upcoming-changes.json new file mode 100644 index 0000000000..bf6d787d48 --- /dev/null +++ b/src/graphql/data/ghes-3.6/upcoming-changes.json @@ -0,0 +1,116 @@ +{ + "2022-10-01": [ + { + "location": "RemovePullRequestFromMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2022-07-01": [ + { + "location": "Enterprise.userAccounts", + "description": "

userAccounts will be removed. Use the Enterprise.members field instead.

", + "reason": "

The Enterprise.userAccounts field is being removed.

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jdennes" + }, + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2022-04-01": [ + { + "location": "Repository.defaultMergeQueue", + "description": "

defaultMergeQueue will be removed. Use Repository.mergeQueue instead.

", + "reason": "

defaultMergeQueue will be removed.

", + "date": "2022-04-01", + "criticality": "breaking", + "owner": "colinshum" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + } + ], + "2020-10-01": [ + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghes-3.7/previews.json b/src/graphql/data/ghes-3.7/previews.json new file mode 100644 index 0000000000..bc9a06987b --- /dev/null +++ b/src/graphql/data/ghes-3.7/previews.json @@ -0,0 +1,129 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghes-3.7.json b/src/graphql/data/ghes-3.7/schema.json similarity index 100% rename from src/graphql/data/schema-ghes-3.7.json rename to src/graphql/data/ghes-3.7/schema.json diff --git a/src/graphql/data/ghes-3.7/upcoming-changes.json b/src/graphql/data/ghes-3.7/upcoming-changes.json new file mode 100644 index 0000000000..abbaca7ff4 --- /dev/null +++ b/src/graphql/data/ghes-3.7/upcoming-changes.json @@ -0,0 +1,244 @@ +{ + "2022-10-01": [ + { + "location": "UnlockAndResetMergeGroupInput.branch", + "description": "

branch will be removed.

", + "reason": "

The current merge group for the repository's default branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "RepositoryVulnerabilityAlert.fixReason", + "description": "

fixReason will be removed.

", + "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jamestran201" + }, + { + "location": "RemovePullRequestFromMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "ProjectNextFieldType.TRACKS", + "description": "

TRACKS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.TITLE", + "description": "

TITLE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.TEXT", + "description": "

TEXT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.SINGLE_SELECT", + "description": "

SINGLE_SELECT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.REVIEWERS", + "description": "

REVIEWERS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.REPOSITORY", + "description": "

REPOSITORY will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.NUMBER", + "description": "

NUMBER will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.MILESTONE", + "description": "

MILESTONE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.LINKED_PULL_REQUESTS", + "description": "

LINKED_PULL_REQUESTS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.LABELS", + "description": "

LABELS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.ITERATION", + "description": "

ITERATION will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.DATE", + "description": "

DATE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.ASSIGNEES", + "description": "

ASSIGNEES will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "MergeLockedMergeGroupInput.branch", + "description": "

branch will be removed.

", + "reason": "

Changes are merged into the repository's default branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "LockMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

The merge queue is locked for the repository's default branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2022-07-01": [ + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2022-04-01": [ + { + "location": "Repository.defaultMergeQueue", + "description": "

defaultMergeQueue will be removed. Use Repository.mergeQueue instead.

", + "reason": "

defaultMergeQueue will be removed.

", + "date": "2022-04-01", + "criticality": "breaking", + "owner": "colinshum" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + } + ], + "2020-10-01": [ + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/ghes-3.8/previews.json b/src/graphql/data/ghes-3.8/previews.json new file mode 100644 index 0000000000..0bd68020a4 --- /dev/null +++ b/src/graphql/data/ghes-3.8/previews.json @@ -0,0 +1,149 @@ +[ + { + "title": "Access to package version deletion preview", + "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", + "toggled_by": "package-deletes-preview", + "toggled_on": [ + "Mutation.deletePackageVersion" + ], + "owning_teams": [ + "@github/pe-package-registry" + ], + "accept_header": "application/vnd.github.package-deletes-preview+json", + "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" + }, + { + "title": "Deployments preview", + "description": "This preview adds support for deployments mutations and new deployments features.", + "toggled_by": "flash-preview", + "toggled_on": [ + "DeploymentStatus.environment", + "Mutation.createDeploymentStatus", + "Mutation.createDeployment" + ], + "owning_teams": [ + "@github/c2c-actions-service" + ], + "accept_header": "application/vnd.github.flash-preview+json", + "href": "/graphql/overview/schema-previews#deployments-preview" + }, + { + "title": "Merge info preview", + "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", + "toggled_by": "merge-info-preview", + "toggled_on": [ + "PullRequest.canBeRebased", + "PullRequest.mergeStateStatus" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.merge-info-preview+json", + "href": "/graphql/overview/schema-previews#merge-info-preview" + }, + { + "title": "Update refs preview", + "description": "This preview adds support for updating multiple refs in a single operation.", + "toggled_by": "update-refs-preview", + "toggled_on": [ + "Mutation.updateRefs", + "GitRefname", + "RefUpdate" + ], + "owning_teams": [ + "@github/reponauts" + ], + "accept_header": "application/vnd.github.update-refs-preview+json", + "href": "/graphql/overview/schema-previews#update-refs-preview" + }, + { + "title": "Access to a repository s dependency graph preview", + "description": "This preview adds support for reading a dependency graph for a repository.", + "toggled_by": "hawkgirl-preview", + "toggled_on": [ + "DependencyGraphManifest", + "Repository.dependencyGraphManifests", + "DependencyGraphManifestEdge", + "DependencyGraphManifestConnection", + "DependencyGraphDependency", + "DependencyGraphDependencyEdge", + "DependencyGraphDependencyConnection", + "DependencyGraphPackageRelease.dependencies" + ], + "owning_teams": [ + "@github/dependency-graph" + ], + "accept_header": "application/vnd.github.hawkgirl-preview+json", + "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" + }, + { + "title": "Project event details preview", + "description": "This preview adds project, project card, and project column details to project-related issue events.", + "toggled_by": "starfox-preview", + "toggled_on": [ + "AddedToProjectEvent.project", + "AddedToProjectEvent.projectCard", + "AddedToProjectEvent.projectColumnName", + "ConvertedNoteToIssueEvent.project", + "ConvertedNoteToIssueEvent.projectCard", + "ConvertedNoteToIssueEvent.projectColumnName", + "MovedColumnsInProjectEvent.project", + "MovedColumnsInProjectEvent.projectCard", + "MovedColumnsInProjectEvent.projectColumnName", + "MovedColumnsInProjectEvent.previousProjectColumnName", + "RemovedFromProjectEvent.project", + "RemovedFromProjectEvent.projectColumnName" + ], + "owning_teams": [ + "@github/github-projects" + ], + "accept_header": "application/vnd.github.starfox-preview+json", + "href": "/graphql/overview/schema-previews#project-event-details-preview" + }, + { + "title": "Labels preview", + "description": "This preview adds support for adding, updating, creating and deleting labels.", + "toggled_by": "bane-preview", + "toggled_on": [ + "Mutation.createLabel", + "Mutation.deleteLabel", + "Mutation.updateLabel" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.bane-preview+json", + "href": "/graphql/overview/schema-previews#labels-preview" + }, + { + "title": "Import project preview", + "description": "This preview adds support for importing projects.", + "toggled_by": "slothette-preview", + "toggled_on": [ + "Mutation.importProject" + ], + "owning_teams": [ + "@github/pe-issues-projects" + ], + "accept_header": "application/vnd.github.slothette-preview+json", + "href": "/graphql/overview/schema-previews#import-project-preview" + }, + { + "title": "Team review assignments preview", + "description": "This preview adds support for updating the settings for team review assignment.", + "toggled_by": "stone-crop-preview", + "toggled_on": [ + "Mutation.updateTeamReviewAssignment", + "TeamReviewAssignmentAlgorithm", + "Team.reviewRequestDelegationEnabled", + "Team.reviewRequestDelegationAlgorithm", + "Team.reviewRequestDelegationMemberCount", + "Team.reviewRequestDelegationNotifyTeam" + ], + "owning_teams": [ + "@github/pe-pull-requests" + ], + "accept_header": "application/vnd.github.stone-crop-preview+json", + "href": "/graphql/overview/schema-previews#team-review-assignments-preview" + } +] \ No newline at end of file diff --git a/src/graphql/data/schema-ghes-3.8.json b/src/graphql/data/ghes-3.8/schema.json similarity index 100% rename from src/graphql/data/schema-ghes-3.8.json rename to src/graphql/data/ghes-3.8/schema.json diff --git a/src/graphql/data/ghes-3.8/upcoming-changes.json b/src/graphql/data/ghes-3.8/upcoming-changes.json new file mode 100644 index 0000000000..0b3ba23ca3 --- /dev/null +++ b/src/graphql/data/ghes-3.8/upcoming-changes.json @@ -0,0 +1,278 @@ +{ + "2023-04-01": [ + { + "location": "Repository.squashPrTitleUsedAsDefault", + "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", + "reason": "

squashPrTitleUsedAsDefault will be removed.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "github/pull_requests" + }, + { + "location": "ProjectV2View.verticalGroupBy", + "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.sortBy", + "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "traumverloren" + }, + { + "location": "ProjectV2View.groupBy", + "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", + "date": "2023-04-01", + "criticality": "breaking", + "owner": "alcere" + } + ], + "2023-01-01": [ + { + "location": "ProjectV2View.visibleFields", + "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", + "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "mattruggio" + }, + { + "location": "ProjectNextFieldType.TRACKS", + "description": "

TRACKS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.TRACKED_BY", + "description": "

TRACKED_BY will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.TITLE", + "description": "

TITLE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.TEXT", + "description": "

TEXT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.SINGLE_SELECT", + "description": "

SINGLE_SELECT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.REVIEWERS", + "description": "

REVIEWERS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.REPOSITORY", + "description": "

REPOSITORY will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.NUMBER", + "description": "

NUMBER will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.MILESTONE", + "description": "

MILESTONE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.LINKED_PULL_REQUESTS", + "description": "

LINKED_PULL_REQUESTS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.LABELS", + "description": "

LABELS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.ITERATION", + "description": "

ITERATION will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.DATE", + "description": "

DATE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "ProjectNextFieldType.ASSIGNEES", + "description": "

ASSIGNEES will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", + "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "lukewar" + }, + { + "location": "Commit.changedFiles", + "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", + "reason": "

changedFiles will be removed.

", + "date": "2023-01-01", + "criticality": "breaking", + "owner": "adamshwert" + } + ], + "2022-10-01": [ + { + "location": "RepositoryVulnerabilityAlert.fixReason", + "description": "

fixReason will be removed.

", + "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jamestran201" + }, + { + "location": "RemovePullRequestFromMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "jhunschejones" + }, + { + "location": "DependencyGraphDependency.packageLabel", + "description": "

packageLabel will be removed. Use normalized packageName field instead.

", + "reason": "

packageLabel will be removed.

", + "date": "2022-10-01", + "criticality": "breaking", + "owner": "github/dependency_graph" + } + ], + "2022-07-01": [ + { + "location": "AddPullRequestToMergeQueueInput.branch", + "description": "

branch will be removed.

", + "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", + "date": "2022-07-01", + "criticality": "breaking", + "owner": "jhunschejones" + } + ], + "2021-10-01": [ + { + "location": "ReactionGroup.users", + "description": "

users will be removed. Use the reactors field instead.

", + "reason": "

Reactors can now be mannequins, bots, and organizations.

", + "date": "2021-10-01", + "criticality": "breaking", + "owner": "synthead" + } + ], + "2021-06-21": [ + { + "location": "PackageType.DOCKER", + "description": "

DOCKER will be removed.

", + "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", + "date": "2021-06-21", + "criticality": "breaking", + "owner": "reybard" + } + ], + "2021-01-01": [ + { + "location": "MergeStateStatus.DRAFT", + "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", + "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", + "date": "2021-01-01", + "criticality": "breaking", + "owner": "nplasterer" + } + ], + "2020-10-01": [ + { + "location": "PullRequest.timeline", + "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + }, + { + "location": "Issue.timeline", + "description": "

timeline will be removed. Use Issue.timelineItems instead.

", + "reason": "

timeline will be removed

", + "date": "2020-10-01", + "criticality": "breaking", + "owner": "mikesea" + } + ], + "2020-01-01": [ + { + "location": "UnassignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + }, + { + "location": "AssignedEvent.user", + "description": "

user will be removed. Use the assignee field instead.

", + "reason": "

Assignees can now be mannequins.

", + "date": "2020-01-01", + "criticality": "breaking", + "owner": "tambling" + } + ], + "2019-04-01": [ + { + "location": "LegacyMigration.uploadUrlTemplate", + "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", + "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", + "date": "2019-04-01", + "criticality": "breaking", + "owner": "tambling" + } + ] +} \ No newline at end of file diff --git a/src/graphql/data/previews.json b/src/graphql/data/previews.json deleted file mode 100644 index 6fa5c39b74..0000000000 --- a/src/graphql/data/previews.json +++ /dev/null @@ -1,1114 +0,0 @@ -{ - "dotcom": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Access to a repository s dependency graph preview", - "description": "This preview adds support for reading a dependency graph for a repository.", - "toggled_by": "hawkgirl-preview", - "toggled_on": [ - "DependencyGraphManifest", - "Repository.dependencyGraphManifests", - "DependencyGraphManifestEdge", - "DependencyGraphManifestConnection", - "DependencyGraphDependency", - "DependencyGraphDependencyEdge", - "DependencyGraphDependencyConnection", - "DependencyGraphPackageRelease.dependencies" - ], - "owning_teams": [ - "@github/dependency-graph" - ], - "accept_header": "application/vnd.github.hawkgirl-preview+json", - "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghec": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Access to a repository s dependency graph preview", - "description": "This preview adds support for reading a dependency graph for a repository.", - "toggled_by": "hawkgirl-preview", - "toggled_on": [ - "DependencyGraphManifest", - "Repository.dependencyGraphManifests", - "DependencyGraphManifestEdge", - "DependencyGraphManifestConnection", - "DependencyGraphDependency", - "DependencyGraphDependencyEdge", - "DependencyGraphDependencyConnection", - "DependencyGraphPackageRelease.dependencies" - ], - "owning_teams": [ - "@github/dependency-graph" - ], - "accept_header": "application/vnd.github.hawkgirl-preview+json", - "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghes-3.8": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Access to a repository s dependency graph preview", - "description": "This preview adds support for reading a dependency graph for a repository.", - "toggled_by": "hawkgirl-preview", - "toggled_on": [ - "DependencyGraphManifest", - "Repository.dependencyGraphManifests", - "DependencyGraphManifestEdge", - "DependencyGraphManifestConnection", - "DependencyGraphDependency", - "DependencyGraphDependencyEdge", - "DependencyGraphDependencyConnection", - "DependencyGraphPackageRelease.dependencies" - ], - "owning_teams": [ - "@github/dependency-graph" - ], - "accept_header": "application/vnd.github.hawkgirl-preview+json", - "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghes-3.7": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghes-3.6": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghes-3.5": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghes-3.4": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ], - "ghae": [ - { - "title": "Access to package version deletion preview", - "description": "This preview adds support for the DeletePackageVersion mutation which enables deletion of private package versions.", - "toggled_by": "package-deletes-preview", - "toggled_on": [ - "Mutation.deletePackageVersion" - ], - "owning_teams": [ - "@github/pe-package-registry" - ], - "accept_header": "application/vnd.github.package-deletes-preview+json", - "href": "/graphql/overview/schema-previews#access-to-package-version-deletion-preview" - }, - { - "title": "Deployments preview", - "description": "This preview adds support for deployments mutations and new deployments features.", - "toggled_by": "flash-preview", - "toggled_on": [ - "DeploymentStatus.environment", - "Mutation.createDeploymentStatus", - "Mutation.createDeployment" - ], - "owning_teams": [ - "@github/c2c-actions-service" - ], - "accept_header": "application/vnd.github.flash-preview+json", - "href": "/graphql/overview/schema-previews#deployments-preview" - }, - { - "title": "Merge info preview", - "description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.", - "toggled_by": "merge-info-preview", - "toggled_on": [ - "PullRequest.canBeRebased", - "PullRequest.mergeStateStatus" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.merge-info-preview+json", - "href": "/graphql/overview/schema-previews#merge-info-preview" - }, - { - "title": "Update refs preview", - "description": "This preview adds support for updating multiple refs in a single operation.", - "toggled_by": "update-refs-preview", - "toggled_on": [ - "Mutation.updateRefs", - "GitRefname", - "RefUpdate" - ], - "owning_teams": [ - "@github/reponauts" - ], - "accept_header": "application/vnd.github.update-refs-preview+json", - "href": "/graphql/overview/schema-previews#update-refs-preview" - }, - { - "title": "Access to a repository s dependency graph preview", - "description": "This preview adds support for reading a dependency graph for a repository.", - "toggled_by": "hawkgirl-preview", - "toggled_on": [ - "DependencyGraphManifest", - "Repository.dependencyGraphManifests", - "DependencyGraphManifestEdge", - "DependencyGraphManifestConnection", - "DependencyGraphDependency", - "DependencyGraphDependencyEdge", - "DependencyGraphDependencyConnection", - "DependencyGraphPackageRelease.dependencies" - ], - "owning_teams": [ - "@github/dependency-graph" - ], - "accept_header": "application/vnd.github.hawkgirl-preview+json", - "href": "/graphql/overview/schema-previews#access-to-a-repository-s-dependency-graph-preview" - }, - { - "title": "Project event details preview", - "description": "This preview adds project, project card, and project column details to project-related issue events.", - "toggled_by": "starfox-preview", - "toggled_on": [ - "AddedToProjectEvent.project", - "AddedToProjectEvent.projectCard", - "AddedToProjectEvent.projectColumnName", - "ConvertedNoteToIssueEvent.project", - "ConvertedNoteToIssueEvent.projectCard", - "ConvertedNoteToIssueEvent.projectColumnName", - "MovedColumnsInProjectEvent.project", - "MovedColumnsInProjectEvent.projectCard", - "MovedColumnsInProjectEvent.projectColumnName", - "MovedColumnsInProjectEvent.previousProjectColumnName", - "RemovedFromProjectEvent.project", - "RemovedFromProjectEvent.projectColumnName" - ], - "owning_teams": [ - "@github/github-projects" - ], - "accept_header": "application/vnd.github.starfox-preview+json", - "href": "/graphql/overview/schema-previews#project-event-details-preview" - }, - { - "title": "Labels preview", - "description": "This preview adds support for adding, updating, creating and deleting labels.", - "toggled_by": "bane-preview", - "toggled_on": [ - "Mutation.createLabel", - "Mutation.deleteLabel", - "Mutation.updateLabel" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.bane-preview+json", - "href": "/graphql/overview/schema-previews#labels-preview" - }, - { - "title": "Import project preview", - "description": "This preview adds support for importing projects.", - "toggled_by": "slothette-preview", - "toggled_on": [ - "Mutation.importProject" - ], - "owning_teams": [ - "@github/pe-issues-projects" - ], - "accept_header": "application/vnd.github.slothette-preview+json", - "href": "/graphql/overview/schema-previews#import-project-preview" - }, - { - "title": "Team review assignments preview", - "description": "This preview adds support for updating the settings for team review assignment.", - "toggled_by": "stone-crop-preview", - "toggled_on": [ - "Mutation.updateTeamReviewAssignment", - "TeamReviewAssignmentAlgorithm", - "Team.reviewRequestDelegationEnabled", - "Team.reviewRequestDelegationAlgorithm", - "Team.reviewRequestDelegationMemberCount", - "Team.reviewRequestDelegationNotifyTeam" - ], - "owning_teams": [ - "@github/pe-pull-requests" - ], - "accept_header": "application/vnd.github.stone-crop-preview+json", - "href": "/graphql/overview/schema-previews#team-review-assignments-preview" - } - ] -} \ No newline at end of file diff --git a/src/graphql/data/upcoming-changes.json b/src/graphql/data/upcoming-changes.json deleted file mode 100644 index 648e15b5bd..0000000000 --- a/src/graphql/data/upcoming-changes.json +++ /dev/null @@ -1,1866 +0,0 @@ -{ - "dotcom": { - "2023-07-01": [ - { - "location": "ProjectV2ItemFieldGroup.field", - "description": "

field will be removed. Check out the ProjectV2ItemFieldGroup#groupByField API as an example for the more capable alternative.

", - "reason": "

The ProjectV2ItemFieldGroup#field API is deprecated in favour of the more capable ProjectV2ItemFieldGroup#groupByField API.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "stevepopovich" - }, - { - "location": "MergeQueueEntry.isSolo", - "description": "

isSolo will be removed. Use solo instead.

", - "reason": "

isSolo will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.headOid", - "description": "

headOid will be removed. Use headCommit instead.

", - "reason": "

headOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.hasJumpedQueue", - "description": "

hasJumpedQueue will be removed. Use jump instead.

", - "reason": "

hasJumpedQueue will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.checkStatus", - "description": "

checkStatus will be removed. Use state instead.

", - "reason": "

checkStatus will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.blockedByMergeConflicts", - "description": "

blockedByMergeConflicts will be removed. Use state instead.

", - "reason": "

blockedByMergeConflicts will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.baseOid", - "description": "

baseOid will be removed. Use baseCommit instead.

", - "reason": "

baseOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.pendingRemovalEntries", - "description": "

pendingRemovalEntries will be removed.

", - "reason": "

pendingRemovalEntries will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.mergingEntries", - "description": "

mergingEntries will be removed.

", - "reason": "

mergingEntries will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.mergeMethod", - "description": "

mergeMethod will be removed. Use configuration.merge_method instead.

", - "reason": "

mergeMethod will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.headOid", - "description": "

headOid will be removed. Use entry.headOid instead.

", - "reason": "

headOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - } - ], - "2023-04-01": [ - { - "location": "RepositoryVulnerabilityAlert.fixReason", - "description": "

fixReason will be removed.

", - "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "jamestran201" - }, - { - "location": "Repository.squashPrTitleUsedAsDefault", - "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", - "reason": "

squashPrTitleUsedAsDefault will be removed.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "github/pull_requests" - }, - { - "location": "ProjectV2View.verticalGroupBy", - "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.sortBy", - "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.groupBy", - "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "alcere" - } - ], - "2023-02-10": [ - { - "location": "PackageType.MAVEN", - "description": "

MAVEN will be removed.

", - "reason": "

MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2023-02-10", - "criticality": "breaking", - "owner": "ankitkaushal01" - } - ], - "2023-01-01": [ - { - "location": "ProjectV2View.visibleFields", - "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "mattruggio" - }, - { - "location": "Commit.changedFiles", - "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", - "reason": "

changedFiles will be removed.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "adamshwert" - } - ], - "2022-12-28": [ - { - "location": "PackageType.RUBYGEMS", - "description": "

RUBYGEMS will be removed.

", - "reason": "

RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-12-28", - "criticality": "breaking", - "owner": "ankitkaushal01" - } - ], - "2022-11-21": [ - { - "location": "PackageType.NUGET", - "description": "

NUGET will be removed.

", - "reason": "

NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-11-21", - "criticality": "breaking", - "owner": "s-anupam" - }, - { - "location": "PackageType.NPM", - "description": "

NPM will be removed.

", - "reason": "

NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-11-21", - "criticality": "breaking", - "owner": "s-anupam" - } - ], - "2022-10-01": [ - { - "location": "RemovePullRequestFromMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "DependencyGraphDependency.packageLabel", - "description": "

packageLabel will be removed. Use normalized packageName field instead.

", - "reason": "

packageLabel will be removed.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "github/dependency_graph" - } - ], - "2022-07-01": [ - { - "location": "Query.sponsorables.dependencyEcosystem", - "description": "

dependencyEcosystem will be removed. Use the ecosystem argument instead.

", - "reason": "

The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem.

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "cheshire137" - }, - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - } - ], - "2020-10-01": [ - { - "location": "Sponsorship.sponsor", - "description": "

sponsor will be removed. Use Sponsorship.sponsorEntity instead.

", - "reason": "

Sponsorship.sponsor will be removed.

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "nholden" - }, - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-04-01": [ - { - "location": "Sponsorship.maintainer", - "description": "

maintainer will be removed. Use Sponsorship.sponsorable instead.

", - "reason": "

Sponsorship.maintainer will be removed.

", - "date": "2020-04-01", - "criticality": "breaking", - "owner": "antn" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghec": { - "2023-07-01": [ - { - "location": "ProjectV2ItemFieldGroup.field", - "description": "

field will be removed. Check out the ProjectV2ItemFieldGroup#groupByField API as an example for the more capable alternative.

", - "reason": "

The ProjectV2ItemFieldGroup#field API is deprecated in favour of the more capable ProjectV2ItemFieldGroup#groupByField API.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "stevepopovich" - }, - { - "location": "MergeQueueEntry.isSolo", - "description": "

isSolo will be removed. Use solo instead.

", - "reason": "

isSolo will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.headOid", - "description": "

headOid will be removed. Use headCommit instead.

", - "reason": "

headOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.hasJumpedQueue", - "description": "

hasJumpedQueue will be removed. Use jump instead.

", - "reason": "

hasJumpedQueue will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.checkStatus", - "description": "

checkStatus will be removed. Use state instead.

", - "reason": "

checkStatus will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.blockedByMergeConflicts", - "description": "

blockedByMergeConflicts will be removed. Use state instead.

", - "reason": "

blockedByMergeConflicts will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.baseOid", - "description": "

baseOid will be removed. Use baseCommit instead.

", - "reason": "

baseOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.pendingRemovalEntries", - "description": "

pendingRemovalEntries will be removed.

", - "reason": "

pendingRemovalEntries will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.mergingEntries", - "description": "

mergingEntries will be removed.

", - "reason": "

mergingEntries will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.mergeMethod", - "description": "

mergeMethod will be removed. Use configuration.merge_method instead.

", - "reason": "

mergeMethod will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.headOid", - "description": "

headOid will be removed. Use entry.headOid instead.

", - "reason": "

headOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - } - ], - "2023-04-01": [ - { - "location": "RepositoryVulnerabilityAlert.fixReason", - "description": "

fixReason will be removed.

", - "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "jamestran201" - }, - { - "location": "Repository.squashPrTitleUsedAsDefault", - "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", - "reason": "

squashPrTitleUsedAsDefault will be removed.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "github/pull_requests" - }, - { - "location": "ProjectV2View.verticalGroupBy", - "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.sortBy", - "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.groupBy", - "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "alcere" - } - ], - "2023-02-10": [ - { - "location": "PackageType.MAVEN", - "description": "

MAVEN will be removed.

", - "reason": "

MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2023-02-10", - "criticality": "breaking", - "owner": "ankitkaushal01" - } - ], - "2023-01-01": [ - { - "location": "ProjectV2View.visibleFields", - "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "mattruggio" - }, - { - "location": "Commit.changedFiles", - "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", - "reason": "

changedFiles will be removed.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "adamshwert" - } - ], - "2022-12-28": [ - { - "location": "PackageType.RUBYGEMS", - "description": "

RUBYGEMS will be removed.

", - "reason": "

RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-12-28", - "criticality": "breaking", - "owner": "ankitkaushal01" - } - ], - "2022-11-21": [ - { - "location": "PackageType.NUGET", - "description": "

NUGET will be removed.

", - "reason": "

NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-11-21", - "criticality": "breaking", - "owner": "s-anupam" - }, - { - "location": "PackageType.NPM", - "description": "

NPM will be removed.

", - "reason": "

NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-11-21", - "criticality": "breaking", - "owner": "s-anupam" - } - ], - "2022-10-01": [ - { - "location": "RemovePullRequestFromMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "DependencyGraphDependency.packageLabel", - "description": "

packageLabel will be removed. Use normalized packageName field instead.

", - "reason": "

packageLabel will be removed.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "github/dependency_graph" - } - ], - "2022-07-01": [ - { - "location": "Query.sponsorables.dependencyEcosystem", - "description": "

dependencyEcosystem will be removed. Use the ecosystem argument instead.

", - "reason": "

The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem.

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "cheshire137" - }, - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - } - ], - "2020-10-01": [ - { - "location": "Sponsorship.sponsor", - "description": "

sponsor will be removed. Use Sponsorship.sponsorEntity instead.

", - "reason": "

Sponsorship.sponsor will be removed.

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "nholden" - }, - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-04-01": [ - { - "location": "Sponsorship.maintainer", - "description": "

maintainer will be removed. Use Sponsorship.sponsorable instead.

", - "reason": "

Sponsorship.maintainer will be removed.

", - "date": "2020-04-01", - "criticality": "breaking", - "owner": "antn" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghes-3.8": { - "2023-04-01": [ - { - "location": "Repository.squashPrTitleUsedAsDefault", - "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", - "reason": "

squashPrTitleUsedAsDefault will be removed.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "github/pull_requests" - }, - { - "location": "ProjectV2View.verticalGroupBy", - "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.sortBy", - "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.groupBy", - "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "alcere" - } - ], - "2023-01-01": [ - { - "location": "ProjectV2View.visibleFields", - "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "mattruggio" - }, - { - "location": "ProjectNextFieldType.TRACKS", - "description": "

TRACKS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.TRACKED_BY", - "description": "

TRACKED_BY will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.TITLE", - "description": "

TITLE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.TEXT", - "description": "

TEXT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.SINGLE_SELECT", - "description": "

SINGLE_SELECT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.REVIEWERS", - "description": "

REVIEWERS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.REPOSITORY", - "description": "

REPOSITORY will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.NUMBER", - "description": "

NUMBER will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.MILESTONE", - "description": "

MILESTONE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.LINKED_PULL_REQUESTS", - "description": "

LINKED_PULL_REQUESTS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.LABELS", - "description": "

LABELS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.ITERATION", - "description": "

ITERATION will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.DATE", - "description": "

DATE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.ASSIGNEES", - "description": "

ASSIGNEES will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "Commit.changedFiles", - "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", - "reason": "

changedFiles will be removed.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "adamshwert" - } - ], - "2022-10-01": [ - { - "location": "RepositoryVulnerabilityAlert.fixReason", - "description": "

fixReason will be removed.

", - "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jamestran201" - }, - { - "location": "RemovePullRequestFromMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "DependencyGraphDependency.packageLabel", - "description": "

packageLabel will be removed. Use normalized packageName field instead.

", - "reason": "

packageLabel will be removed.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "github/dependency_graph" - } - ], - "2022-07-01": [ - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - } - ], - "2020-10-01": [ - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghes-3.7": { - "2022-10-01": [ - { - "location": "UnlockAndResetMergeGroupInput.branch", - "description": "

branch will be removed.

", - "reason": "

The current merge group for the repository's default branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "RepositoryVulnerabilityAlert.fixReason", - "description": "

fixReason will be removed.

", - "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jamestran201" - }, - { - "location": "RemovePullRequestFromMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "ProjectNextFieldType.TRACKS", - "description": "

TRACKS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.TITLE", - "description": "

TITLE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.TEXT", - "description": "

TEXT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.SINGLE_SELECT", - "description": "

SINGLE_SELECT will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.REVIEWERS", - "description": "

REVIEWERS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.REPOSITORY", - "description": "

REPOSITORY will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.NUMBER", - "description": "

NUMBER will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.MILESTONE", - "description": "

MILESTONE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.LINKED_PULL_REQUESTS", - "description": "

LINKED_PULL_REQUESTS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.LABELS", - "description": "

LABELS will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.ITERATION", - "description": "

ITERATION will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.DATE", - "description": "

DATE will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "ProjectNextFieldType.ASSIGNEES", - "description": "

ASSIGNEES will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.

", - "reason": "

The ProjectNext API is deprecated in favour of the more capable ProjectV2 API.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "lukewar" - }, - { - "location": "MergeLockedMergeGroupInput.branch", - "description": "

branch will be removed.

", - "reason": "

Changes are merged into the repository's default branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "LockMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

The merge queue is locked for the repository's default branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2022-07-01": [ - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2022-04-01": [ - { - "location": "Repository.defaultMergeQueue", - "description": "

defaultMergeQueue will be removed. Use Repository.mergeQueue instead.

", - "reason": "

defaultMergeQueue will be removed.

", - "date": "2022-04-01", - "criticality": "breaking", - "owner": "colinshum" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - } - ], - "2020-10-01": [ - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghes-3.6": { - "2022-10-01": [ - { - "location": "RemovePullRequestFromMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2022-07-01": [ - { - "location": "Enterprise.userAccounts", - "description": "

userAccounts will be removed. Use the Enterprise.members field instead.

", - "reason": "

The Enterprise.userAccounts field is being removed.

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jdennes" - }, - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2022-04-01": [ - { - "location": "Repository.defaultMergeQueue", - "description": "

defaultMergeQueue will be removed. Use Repository.mergeQueue instead.

", - "reason": "

defaultMergeQueue will be removed.

", - "date": "2022-04-01", - "criticality": "breaking", - "owner": "colinshum" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - } - ], - "2020-10-01": [ - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghes-3.5": { - "2022-07-01": [ - { - "location": "Enterprise.userAccounts", - "description": "

userAccounts will be removed. Use the Enterprise.members field instead.

", - "reason": "

The Enterprise.userAccounts field is being removed.

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jdennes" - }, - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2022-04-01": [ - { - "location": "Repository.defaultMergeQueue", - "description": "

defaultMergeQueue will be removed. Use Repository.mergeQueue instead.

", - "reason": "

defaultMergeQueue will be removed.

", - "date": "2022-04-01", - "criticality": "breaking", - "owner": "colinshum" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - }, - { - "location": "EnterpriseOutsideCollaboratorEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All outside collaborators consume a license

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - }, - { - "location": "EnterpriseMemberEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All members consume a license

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - } - ], - "2020-10-01": [ - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-07-01": [ - { - "location": "EnterprisePendingMemberInvitationEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All pending members consume a license

", - "date": "2020-07-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "EnterpriseBillingInfo.seats", - "description": "

seats will be removed. Use EnterpriseBillingInfo.totalLicenses instead.

", - "reason": "

seats will be replaced with totalLicenses to provide more clarity on the value being returned

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "BlakeWilliams" - }, - { - "location": "EnterpriseBillingInfo.availableSeats", - "description": "

availableSeats will be removed. Use EnterpriseBillingInfo.totalAvailableLicenses instead.

", - "reason": "

availableSeats will be replaced with totalAvailableLicenses to provide more clarity on the value being returned

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "BlakeWilliams" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghes-3.4": { - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - }, - { - "location": "EnterprisePendingCollaboratorEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All pending collaborators consume a license

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - }, - { - "location": "EnterpriseOutsideCollaboratorEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All outside collaborators consume a license

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - }, - { - "location": "EnterpriseMemberEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All members consume a license

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - } - ], - "2020-10-01": [ - { - "location": "RepositoryInvitationOrderField.INVITEE_LOGIN", - "description": "

INVITEE_LOGIN will be removed.

", - "reason": "

INVITEE_LOGIN is no longer a valid field value. Repository invitations can now be associated with an email, not only an invitee.

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "jdennes" - }, - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "EnterpriseOwnerInfo.pendingCollaborators", - "description": "

pendingCollaborators will be removed. Use the pendingCollaboratorInvitations field instead.

", - "reason": "

Repository invitations can now be associated with an email, not only an invitee.

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "jdennes" - } - ], - "2020-07-01": [ - { - "location": "EnterprisePendingMemberInvitationEdge.isUnlicensed", - "description": "

isUnlicensed will be removed.

", - "reason": "

All pending members consume a license

", - "date": "2020-07-01", - "criticality": "breaking", - "owner": "BrentWheeldon" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "EnterpriseBillingInfo.seats", - "description": "

seats will be removed. Use EnterpriseBillingInfo.totalLicenses instead.

", - "reason": "

seats will be replaced with totalLicenses to provide more clarity on the value being returned

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "BlakeWilliams" - }, - { - "location": "EnterpriseBillingInfo.availableSeats", - "description": "

availableSeats will be removed. Use EnterpriseBillingInfo.totalAvailableLicenses instead.

", - "reason": "

availableSeats will be replaced with totalAvailableLicenses to provide more clarity on the value being returned

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "BlakeWilliams" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - }, - "ghae": { - "2023-07-01": [ - { - "location": "ProjectV2ItemFieldGroup.field", - "description": "

field will be removed. Check out the ProjectV2ItemFieldGroup#groupByField API as an example for the more capable alternative.

", - "reason": "

The ProjectV2ItemFieldGroup#field API is deprecated in favour of the more capable ProjectV2ItemFieldGroup#groupByField API.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "stevepopovich" - }, - { - "location": "MergeQueueEntry.isSolo", - "description": "

isSolo will be removed. Use solo instead.

", - "reason": "

isSolo will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.headOid", - "description": "

headOid will be removed. Use headCommit instead.

", - "reason": "

headOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.hasJumpedQueue", - "description": "

hasJumpedQueue will be removed. Use jump instead.

", - "reason": "

hasJumpedQueue will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.checkStatus", - "description": "

checkStatus will be removed. Use state instead.

", - "reason": "

checkStatus will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.blockedByMergeConflicts", - "description": "

blockedByMergeConflicts will be removed. Use state instead.

", - "reason": "

blockedByMergeConflicts will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueueEntry.baseOid", - "description": "

baseOid will be removed. Use baseCommit instead.

", - "reason": "

baseOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.pendingRemovalEntries", - "description": "

pendingRemovalEntries will be removed.

", - "reason": "

pendingRemovalEntries will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.mergingEntries", - "description": "

mergingEntries will be removed.

", - "reason": "

mergingEntries will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.mergeMethod", - "description": "

mergeMethod will be removed. Use configuration.merge_method instead.

", - "reason": "

mergeMethod will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - }, - { - "location": "MergeQueue.headOid", - "description": "

headOid will be removed. Use entry.headOid instead.

", - "reason": "

headOid will be removed.

", - "date": "2023-07-01", - "criticality": "breaking", - "owner": "github/merge_queue" - } - ], - "2023-04-01": [ - { - "location": "RepositoryVulnerabilityAlert.fixReason", - "description": "

fixReason will be removed.

", - "reason": "

The fixReason field is being removed. You can still use fixedAt and dismissReason.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "jamestran201" - }, - { - "location": "Repository.squashPrTitleUsedAsDefault", - "description": "

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead.

", - "reason": "

squashPrTitleUsedAsDefault will be removed.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "github/pull_requests" - }, - { - "location": "ProjectV2View.verticalGroupBy", - "description": "

verticalGroupBy will be removed. Check out the ProjectV2View#vertical_group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#vertical_group_by API is deprecated in favour of the more capable ProjectV2View#vertical_group_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.sortBy", - "description": "

sortBy will be removed. Check out the ProjectV2View#sort_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#sort_by API is deprecated in favour of the more capable ProjectV2View#sort_by_fields API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "traumverloren" - }, - { - "location": "ProjectV2View.groupBy", - "description": "

groupBy will be removed. Check out the ProjectV2View#group_by_fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#order_by API is deprecated in favour of the more capable ProjectV2View#group_by_field API.

", - "date": "2023-04-01", - "criticality": "breaking", - "owner": "alcere" - } - ], - "2023-02-10": [ - { - "location": "PackageType.MAVEN", - "description": "

MAVEN will be removed.

", - "reason": "

MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2023-02-10", - "criticality": "breaking", - "owner": "ankitkaushal01" - } - ], - "2023-01-01": [ - { - "location": "ProjectV2View.visibleFields", - "description": "

visibleFields will be removed. Check out the ProjectV2View#fields API as an example for the more capable alternative.

", - "reason": "

The ProjectV2View#visibleFields API is deprecated in favour of the more capable ProjectV2View#fields API.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "mattruggio" - }, - { - "location": "Commit.changedFiles", - "description": "

changedFiles will be removed. Use changedFilesIfAvailable instead.

", - "reason": "

changedFiles will be removed.

", - "date": "2023-01-01", - "criticality": "breaking", - "owner": "adamshwert" - } - ], - "2022-12-28": [ - { - "location": "PackageType.RUBYGEMS", - "description": "

RUBYGEMS will be removed.

", - "reason": "

RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-12-28", - "criticality": "breaking", - "owner": "ankitkaushal01" - } - ], - "2022-11-21": [ - { - "location": "PackageType.NUGET", - "description": "

NUGET will be removed.

", - "reason": "

NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-11-21", - "criticality": "breaking", - "owner": "s-anupam" - }, - { - "location": "PackageType.NPM", - "description": "

NPM will be removed.

", - "reason": "

NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2022-11-21", - "criticality": "breaking", - "owner": "s-anupam" - } - ], - "2022-10-01": [ - { - "location": "RemovePullRequestFromMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are removed from the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "jhunschejones" - }, - { - "location": "DependencyGraphDependency.packageLabel", - "description": "

packageLabel will be removed. Use normalized packageName field instead.

", - "reason": "

packageLabel will be removed.

", - "date": "2022-10-01", - "criticality": "breaking", - "owner": "github/dependency_graph" - } - ], - "2022-07-01": [ - { - "location": "AddPullRequestToMergeQueueInput.branch", - "description": "

branch will be removed.

", - "reason": "

PRs are added to the merge queue for the base branch, the branch argument is now a no-op

", - "date": "2022-07-01", - "criticality": "breaking", - "owner": "jhunschejones" - } - ], - "2021-10-01": [ - { - "location": "ReactionGroup.users", - "description": "

users will be removed. Use the reactors field instead.

", - "reason": "

Reactors can now be mannequins, bots, and organizations.

", - "date": "2021-10-01", - "criticality": "breaking", - "owner": "synthead" - } - ], - "2021-06-21": [ - { - "location": "PackageType.DOCKER", - "description": "

DOCKER will be removed.

", - "reason": "

DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API.

", - "date": "2021-06-21", - "criticality": "breaking", - "owner": "reybard" - } - ], - "2021-01-01": [ - { - "location": "MergeStateStatus.DRAFT", - "description": "

DRAFT will be removed. Use PullRequest.isDraft instead.

", - "reason": "

DRAFT state will be removed from this enum and isDraft should be used instead

", - "date": "2021-01-01", - "criticality": "breaking", - "owner": "nplasterer" - } - ], - "2020-10-01": [ - { - "location": "PullRequest.timeline", - "description": "

timeline will be removed. Use PullRequest.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - }, - { - "location": "Issue.timeline", - "description": "

timeline will be removed. Use Issue.timelineItems instead.

", - "reason": "

timeline will be removed

", - "date": "2020-10-01", - "criticality": "breaking", - "owner": "mikesea" - } - ], - "2020-01-01": [ - { - "location": "UnassignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - }, - { - "location": "AssignedEvent.user", - "description": "

user will be removed. Use the assignee field instead.

", - "reason": "

Assignees can now be mannequins.

", - "date": "2020-01-01", - "criticality": "breaking", - "owner": "tambling" - } - ], - "2019-04-01": [ - { - "location": "LegacyMigration.uploadUrlTemplate", - "description": "

uploadUrlTemplate will be removed. Use uploadUrl instead.

", - "reason": "

uploadUrlTemplate is being removed because it is not a standard URL and adds an extra user step.

", - "date": "2019-04-01", - "criticality": "breaking", - "owner": "tambling" - } - ] - } -} \ No newline at end of file diff --git a/src/graphql/lib/index.js b/src/graphql/lib/index.js index 231927e54e..64988aad54 100644 --- a/src/graphql/lib/index.js +++ b/src/graphql/lib/index.js @@ -6,9 +6,10 @@ import { getAutomatedPageMiniTocItems } from '../../../lib/get-mini-toc-items.js import languages from '../../../lib/languages.js' import { allVersions } from '../../../lib/all-versions.js' +export const GRAPHQL_DATA_DIR = 'src/graphql/data' /* ADD LANGUAGE KEY */ -let previews -let upcomingChanges +const previews = new Map() +const upcomingChanges = new Map() const changelog = new Map() const graphqlSchema = new Map() const miniTocs = new Map() @@ -22,39 +23,44 @@ export function getGraphqlSchema(version, type) { if (!graphqlSchema.has(graphqlVersion)) { graphqlSchema.set( graphqlVersion, - readCompressedJsonFileFallback(`src/graphql/data/schema-${graphqlVersion}.json`) + readCompressedJsonFileFallback(`${GRAPHQL_DATA_DIR}/${graphqlVersion}/schema.json`) ) } return graphqlSchema.get(graphqlVersion)[type] } -export function getGraphqlChangelog() { - if (!changelog.has('schema')) { +export function getGraphqlChangelog(version) { + const graphqlVersion = getGraphqlVersion(version) + if (!changelog.has(graphqlVersion)) { changelog.set( - 'schema', - readCompressedJsonFileFallbackLazily('./src/graphql/data/changelog.json')() + graphqlVersion, + readCompressedJsonFileFallbackLazily(`${GRAPHQL_DATA_DIR}/${graphqlVersion}/changelog.json`)() ) } - return changelog.get('schema') + return changelog.get(graphqlVersion) } export function getGraphqlBreakingChanges(version) { const graphqlVersion = getGraphqlVersion(version) - if (!upcomingChanges) { - upcomingChanges = readCompressedJsonFileFallbackLazily( - './src/graphql/data/upcoming-changes.json' + if (!upcomingChanges.has(graphqlVersion)) { + const data = readCompressedJsonFileFallbackLazily( + `${GRAPHQL_DATA_DIR}/${graphqlVersion}/upcoming-changes.json` )() + upcomingChanges.set(graphqlVersion, data) } - return upcomingChanges[graphqlVersion] + return upcomingChanges.get(graphqlVersion) } export function getPreviews(version) { const graphqlVersion = getGraphqlVersion(version) - if (!previews) { - previews = readCompressedJsonFileFallbackLazily('./src/graphql/data/previews.json')() + if (!previews.has(graphqlVersion)) { + const data = readCompressedJsonFileFallbackLazily( + `${GRAPHQL_DATA_DIR}/${graphqlVersion}/previews.json` + )() + previews.set(graphqlVersion, data) } - return previews[graphqlVersion] + return previews.get(graphqlVersion) } export async function getMiniToc(context, type, items, depth = 2, markdownHeading = '') { diff --git a/src/graphql/scripts/update-files.js b/src/graphql/scripts/update-files.js index 7644fe9a19..eefdec327d 100755 --- a/src/graphql/scripts/update-files.js +++ b/src/graphql/scripts/update-files.js @@ -27,9 +27,6 @@ const versionsToBuild = Object.keys(allVersions) main() async function main() { - const previewsJson = {} - const upcomingChangesJson = {} - for (const version of versionsToBuild) { // Get the relevant GraphQL name for the current version // For example, free-pro-team@latest corresponds to dotcom, @@ -41,14 +38,22 @@ async function main() { const previewsPath = getDataFilepath('previews', graphqlVersion) const safeForPublicPreviews = yaml.load(await getRemoteRawContent(previewsPath, graphqlVersion)) await updateFile(previewsPath, yaml.dump(safeForPublicPreviews)) - previewsJson[graphqlVersion] = processPreviews(safeForPublicPreviews) + const previewsJson = processPreviews(safeForPublicPreviews) + await updateStaticFile( + previewsJson, + path.join(graphqlStaticDir, graphqlVersion, 'previews.json') + ) // 2. UPDATE UPCOMING CHANGES const upcomingChangesPath = getDataFilepath('upcomingChanges', graphqlVersion) const previousUpcomingChanges = yaml.load(await fs.readFile(upcomingChangesPath, 'utf8')) const safeForPublicChanges = await getRemoteRawContent(upcomingChangesPath, graphqlVersion) await updateFile(upcomingChangesPath, safeForPublicChanges) - upcomingChangesJson[graphqlVersion] = await processUpcomingChanges(safeForPublicChanges) + const upcomingChangesJson = await processUpcomingChanges(safeForPublicChanges) + await updateStaticFile( + upcomingChangesJson, + path.join(graphqlStaticDir, graphqlVersion, 'upcoming-changes.json') + ) // 3. UPDATE SCHEMAS // note: schemas live in separate files per version @@ -59,12 +64,12 @@ async function main() { const schemaJsonPerVersion = await processSchemas(latestSchema, safeForPublicPreviews) await updateStaticFile( schemaJsonPerVersion, - path.join(graphqlStaticDir, `schema-${graphqlVersion}.json`) + path.join(graphqlStaticDir, graphqlVersion, 'schema.json') ) // 4. UPDATE CHANGELOG if (allVersions[version].nonEnterpriseDefault) { - // The Changelog is only build for free-pro-team@latest + // The changelog is only built for free-pro-team@latest const changelogEntry = await createChangelogEntry( previousSchemaString, latestSchema, @@ -75,15 +80,12 @@ async function main() { if (changelogEntry) { prependDatedEntry( changelogEntry, - path.join(process.cwd(), 'src/graphql/data/changelog.json') + path.join(graphqlStaticDir, graphqlVersion, 'changelog.json') ) } } } - await updateStaticFile(previewsJson, path.join(graphqlStaticDir, 'previews.json')) - await updateStaticFile(upcomingChangesJson, path.join(graphqlStaticDir, 'upcoming-changes.json')) - // Ensure the YAML linter runs before checkinging in files execSync('npx prettier -w "**/*.{yml,yaml}"') } diff --git a/tests/content/graphql.js b/tests/content/graphql.js index 4c771eccef..2cf168a379 100644 --- a/tests/content/graphql.js +++ b/tests/content/graphql.js @@ -1,3 +1,5 @@ +import { jest } from '@jest/globals' + import readJsonFile from '../../lib/read-json-file.js' import { schemaValidator, @@ -6,10 +8,8 @@ import { } from '../../src/graphql/lib/validator.js' import revalidator from 'revalidator' import { allVersions } from '../../lib/all-versions.js' -import { jest } from '@jest/globals' +import { GRAPHQL_DATA_DIR } from '../../src/graphql/lib/index.js' -const previewsJson = readJsonFile('./src/graphql/data/previews.json') -const upcomingChangesJson = readJsonFile('./src/graphql/data/upcoming-changes.json') const allVersionValues = Object.values(allVersions) const graphqlVersions = allVersionValues.map((v) => v.miscVersionName) const graphqlTypes = readJsonFile('./src/graphql/lib/types.json').map((t) => t.kind) @@ -17,20 +17,13 @@ const graphqlTypes = readJsonFile('./src/graphql/lib/types.json').map((t) => t.k describe('graphql json files', () => { jest.setTimeout(3 * 60 * 1000) - test('static files have versions as top-level keys', () => { - graphqlVersions.forEach((version) => { - expect(version in previewsJson).toBe(true) - expect(version in upcomingChangesJson).toBe(true) - }) - }) - test('schemas object validation', () => { // The typeObj is repeated thousands of times in each .json file // so use a cache of which we've already validated to speed this // test up significantly. const typeObjsTested = new Set() graphqlVersions.forEach((version) => { - const schemaJsonPerVersion = readJsonFile(`src/graphql/data/schema-${version}.json`) + const schemaJsonPerVersion = readJsonFile(`${GRAPHQL_DATA_DIR}/${version}/schema.json`) // all graphql types are arrays except for queries graphqlTypes.forEach((type) => { schemaJsonPerVersion[type].forEach((typeObj) => { @@ -48,8 +41,9 @@ describe('graphql json files', () => { test('previews object validation', () => { graphqlVersions.forEach((version) => { - previewsJson[version].forEach((previewObj) => { - const { valid, errors } = revalidator.validate(previewObj, previewsValidator) + const previews = readJsonFile(`${GRAPHQL_DATA_DIR}/${version}/previews.json`) + previews.forEach((preview) => { + const { valid, errors } = revalidator.validate(preview, previewsValidator) const errorMessage = JSON.stringify(errors, null, 2) expect(valid, errorMessage).toBe(true) }) @@ -58,14 +52,15 @@ describe('graphql json files', () => { test('upcoming changes object validation', () => { graphqlVersions.forEach((version) => { - Object.values(upcomingChangesJson[version]).forEach((changes) => { + const upcomingChanges = readJsonFile(`${GRAPHQL_DATA_DIR}/${version}/upcoming-changes.json`) + for (const changes of Object.values(upcomingChanges)) { // each object value is an array of changes changes.forEach((changeObj) => { const { valid, errors } = revalidator.validate(changeObj, upcomingChangesValidator) const errorMessage = JSON.stringify(errors, null, 2) expect(valid, errorMessage).toBe(true) }) - }) + } }) }) }) diff --git a/tests/unit/graphql.js b/tests/unit/graphql.js index 7beff987a2..0162028d18 100644 --- a/tests/unit/graphql.js +++ b/tests/unit/graphql.js @@ -22,8 +22,7 @@ describe('graphql schema', () => { } test('getting the graphql changelog works for dotcom', async () => { - const defaultVersion = allVersions.defaultVersion - const schema = getGraphqlChangelog(defaultVersion) + const schema = getGraphqlChangelog('free-pro-team@latest') expect(schema).toBeDefined() })