Skip to content

Commit

Permalink
GraphQL schema update (#33877)
Browse files Browse the repository at this point in the history
Co-authored-by: rachmari <[email protected]>
  • Loading branch information
Octomerger and rachmari authored Jan 10, 2023
1 parent b0cee66 commit 2b25e87
Show file tree
Hide file tree
Showing 11 changed files with 4,883 additions and 226 deletions.
16 changes: 16 additions & 0 deletions data/graphql/ghae/graphql_upcoming_changes.public-ghae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ upcoming_changes:
date: '2022-11-21'
criticality: breaking
owner: s-anupam
- 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
- location: Commit.changedFiles
description: '`changedFiles` will be removed. Use `changedFilesIfAvailable` instead.'
reason: '`changedFiles` will be removed.'
Expand Down Expand Up @@ -243,6 +251,14 @@ upcoming_changes:
date: '2023-01-01T00:00:00+00:00'
criticality: breaking
owner: mattruggio
- 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
- location: ProjectV2View.groupBy
description:
'`groupBy` will be removed. Check out the `ProjectV2View#group_by_fields`
Expand Down
171 changes: 171 additions & 0 deletions data/graphql/ghae/schema.docs-ghae.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,11 @@ type AddReactionPayload {
"""
reaction: Reaction

"""
The reaction groups for the subject.
"""
reactionGroups: [ReactionGroup!]

"""
The reactable subject.
"""
Expand Down Expand Up @@ -6601,6 +6606,11 @@ input CreatePullRequestInput {
"""
headRefName: String!

"""
The Node ID of the head repository.
"""
headRepositoryId: ID @possibleTypes(concreteTypes: ["Repository"])

"""
Indicates whether maintainers can modify the pull request.
"""
Expand Down Expand Up @@ -18529,6 +18539,16 @@ type Mutation {
input: RevokeMigratorRoleInput!
): RevokeMigratorRolePayload

"""
Starts a GitHub Enterprise Importer organization migration.
"""
startOrganizationMigration(
"""
Parameters for StartOrganizationMigration
"""
input: StartOrganizationMigrationInput!
): StartOrganizationMigrationPayload

"""
Starts a GitHub Enterprise Importer (GEI) repository migration.
"""
Expand Down Expand Up @@ -23669,6 +23689,102 @@ enum OrganizationMembersCanCreateRepositoriesSettingValue {
PRIVATE
}

"""
A GitHub Enterprise Importer (GEI) organization migration.
"""
type OrganizationMigration implements Node {
"""
Identifies the date and time when the object was created.
"""
createdAt: DateTime!

"""
Identifies the primary key from the database.
"""
databaseId: String

"""
The reason the organization migration failed.
"""
failureReason: String
id: ID!

"""
The remaining amount of repos to be migrated.
"""
remainingRepositoriesCount: Int

"""
The name of the source organization to be migrated.
"""
sourceOrgName: String!

"""
The URL of the source organization to migrate.
"""
sourceOrgUrl: URI!

"""
The migration state.
"""
state: OrganizationMigrationState!

"""
The name of the target organization.
"""
targetOrgName: String!

"""
The total amount of repositories to be migrated.
"""
totalRepositoriesCount: Int
}

"""
The Octoshift Organization migration state.
"""
enum OrganizationMigrationState {
"""
The Octoshift migration has failed.
"""
FAILED

"""
The Octoshift migration is in progress.
"""
IN_PROGRESS

"""
The Octoshift migration has not started.
"""
NOT_STARTED

"""
The Octoshift migration is performing post repository migrations.
"""
POST_REPO_MIGRATION

"""
The Octoshift migration is performing pre repository migrations.
"""
PRE_REPO_MIGRATION

"""
The Octoshift migration has been queued.
"""
QUEUED

"""
The Octoshift org migration is performing repository migrations.
"""
REPO_MIGRATION

"""
The Octoshift migration has succeeded.
"""
SUCCEEDED
}

"""
Ordering options for organization connections.
"""
Expand Down Expand Up @@ -29972,6 +30088,11 @@ type RemoveReactionPayload {
"""
reaction: Reaction

"""
The reaction groups for the subject.
"""
reactionGroups: [ReactionGroup!]

"""
The reactable subject.
"""
Expand Down Expand Up @@ -32984,6 +33105,11 @@ type Repository implements Node & ProjectOwner & RepositoryInfo & Starrable & Su
"""
hasProjectsEnabled: Boolean!

"""
Whether vulnerability alerts are enabled for the repository.
"""
hasVulnerabilityAlertsEnabled: Boolean!

"""
Indicates if the repository has wiki feature enabled.
"""
Expand Down Expand Up @@ -36916,6 +37042,51 @@ type StarredRepositoryEdge {
starredAt: DateTime!
}

"""
Autogenerated input type of StartOrganizationMigration
"""
input StartOrganizationMigrationInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
The migration source access token.
"""
sourceAccessToken: String!

"""
The URL of the organization to migrate.
"""
sourceOrgUrl: URI!

"""
The ID of the enterprise the target organization belongs to.
"""
targetEnterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])

"""
The name of the target organization.
"""
targetOrgName: String!
}

"""
Autogenerated return type of StartOrganizationMigration
"""
type StartOrganizationMigrationPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
The new organization migration.
"""
orgMigration: OrganizationMigration
}

"""
Autogenerated input type of StartRepositoryMigration
"""
Expand Down
16 changes: 16 additions & 0 deletions data/graphql/ghec/graphql_upcoming_changes.public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ upcoming_changes:
date: '2022-11-21'
criticality: breaking
owner: s-anupam
- 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
- location: AddProjectDraftIssueInput.assigneeIds
description:
'`assigneeIds` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/,
Expand Down Expand Up @@ -1734,6 +1742,14 @@ upcoming_changes:
date: '2023-01-01T00:00:00+00:00'
criticality: breaking
owner: lukewar
- 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
- location: ProjectV2View.groupBy
description:
'`groupBy` will be removed. Check out the `ProjectV2View#group_by_fields`
Expand Down
Loading

0 comments on commit 2b25e87

Please sign in to comment.