From a64c3a72a2303f248023ee663863ad0e3ca40dda Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 16 Apr 2024 16:00:50 +0000 Subject: [PATCH 1/2] WIP: schema.graphql changed - please review --- schema.graphql | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/schema.graphql b/schema.graphql index c48e373de..104a2214d 100644 --- a/schema.graphql +++ b/schema.graphql @@ -16737,6 +16737,56 @@ enum IdentityProviderConfigurationState { UNCONFIGURED } +""" +Autogenerated input type of ImportProject +""" +input ImportProjectInput { + """ + The description of Project. + """ + body: String + + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + A list of columns containing issues and pull requests. + """ + columnImports: [ProjectColumnImport!]! + + """ + The name of Project. + """ + name: String! + + """ + The name of the Organization or User to create the Project under. + """ + ownerName: String! + + """ + Whether the Project is public or not. + """ + public: Boolean = false +} + +""" +Autogenerated return type of ImportProject +""" +type ImportProjectPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The new Project! + """ + project: Project +} + """ Autogenerated input type of InviteEnterpriseAdmin """ @@ -22594,6 +22644,16 @@ type Mutation { input: GrantMigratorRoleInput! ): GrantMigratorRolePayload + """ + Creates a new project by importing columns and a list of issues/PRs. + """ + importProject( + """ + Parameters for ImportProject + """ + input: ImportProjectInput! + ): ImportProjectPayload + """ Invite someone to become an administrator of the enterprise. """ @@ -31359,6 +31419,21 @@ type ProjectCardEdge { node: ProjectCard } +""" +An issue or PR and its owning repository to be used in a project card. +""" +input ProjectCardImport { + """ + The issue or pull request number. + """ + number: Int! + + """ + Repository name with owner (owner/repository). + """ + repository: String! +} + """ Types that can be inside Project Cards. """ @@ -31504,6 +31579,26 @@ type ProjectColumnEdge { node: ProjectColumn } +""" +A project column and a list of its issues and PRs. +""" +input ProjectColumnImport { + """ + The name of the column. + """ + columnName: String! + + """ + A list of issues and pull requests in the column. + """ + issues: [ProjectCardImport!] + + """ + The position of the column, starting from 0. + """ + position: Int! +} + """ The semantic purpose of the column - todo, in progress, or done. """ From f273be66b805735d8397d43b857cd12389aa3a80 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 16 Apr 2024 16:00:53 +0000 Subject: [PATCH 2/2] build: schema.json and schema.d.ts updated --- schema.d.ts | 98 ++++++++++ schema.json | 504 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 602 insertions(+) diff --git a/schema.d.ts b/schema.d.ts index 86161431f..17e74c886 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -667,6 +667,12 @@ export type AddedToProjectEvent = Node & { databaseId?: Maybe; /** The Node ID of the AddedToProjectEvent object */ id: Scalars['ID']['output']; + /** Project referenced by event. */ + project?: Maybe; + /** Project card referenced by this project event. */ + projectCard?: Maybe; + /** Column name referenced by this project event. */ + projectColumnName: Scalars['String']['output']; }; /** Represents an announcement banner. */ @@ -3359,6 +3365,12 @@ export type ConvertedNoteToIssueEvent = Node & { databaseId?: Maybe; /** The Node ID of the ConvertedNoteToIssueEvent object */ id: Scalars['ID']['output']; + /** Project referenced by event. */ + project?: Maybe; + /** Project card referenced by this project event. */ + projectCard?: Maybe; + /** Column name referenced by this project event. */ + projectColumnName: Scalars['String']['output']; }; /** Represents a 'converted_to_discussion' event on a given issue. */ @@ -8537,6 +8549,31 @@ export type IdentityProviderConfigurationState = /** Authentication with an identity provider is not configured. */ | 'UNCONFIGURED'; +/** Autogenerated input type of ImportProject */ +export type ImportProjectInput = { + /** The description of Project. */ + body?: InputMaybe; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** A list of columns containing issues and pull requests. */ + columnImports: Array; + /** The name of Project. */ + name: Scalars['String']['input']; + /** The name of the Organization or User to create the Project under. */ + ownerName: Scalars['String']['input']; + /** Whether the Project is public or not. */ + public?: InputMaybe; +}; + +/** Autogenerated return type of ImportProject */ +export type ImportProjectPayload = { + __typename?: 'ImportProjectPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The new Project! */ + project?: Maybe; +}; + /** Autogenerated input type of InviteEnterpriseAdmin */ export type InviteEnterpriseAdminInput = { /** A unique identifier for the client performing the mutation. */ @@ -10443,6 +10480,25 @@ export type MergeQueueMergingStrategy = /** Failing Entires are allowed to merge if they are with a passing entry. */ | 'HEADGREEN'; +/** Detailed status information about a pull request merge. */ +export type MergeStateStatus = + /** The head ref is out of date. */ + | 'BEHIND' + /** The merge is blocked. */ + | 'BLOCKED' + /** Mergeable and passing commit status. */ + | 'CLEAN' + /** The merge commit cannot be cleanly created. */ + | 'DIRTY' + /** The merge is blocked due to the pull request being a draft. */ + | 'DRAFT' + /** Mergeable with passing commit status and pre-receive hooks. */ + | 'HAS_HOOKS' + /** The state cannot currently be determined. */ + | 'UNKNOWN' + /** Mergeable with non-passing commit status. */ + | 'UNSTABLE'; + /** Whether or not a PullRequest can be merged. */ export type MergeableState = /** The pull request cannot be merged due to merge conflicts. */ @@ -10763,6 +10819,14 @@ export type MovedColumnsInProjectEvent = Node & { databaseId?: Maybe; /** The Node ID of the MovedColumnsInProjectEvent object */ id: Scalars['ID']['output']; + /** Column name the issue or pull request was moved from. */ + previousProjectColumnName: Scalars['String']['output']; + /** Project referenced by event. */ + project?: Maybe; + /** Project card referenced by this project event. */ + projectCard?: Maybe; + /** Column name the issue or pull request was moved to. */ + projectColumnName: Scalars['String']['output']; }; /** The root query for implementing GraphQL mutations. */ @@ -11033,6 +11097,8 @@ export type Mutation = { grantEnterpriseOrganizationsMigratorRole?: Maybe; /** Grant the migrator role to a user or a team. */ grantMigratorRole?: Maybe; + /** Creates a new project by importing columns and a list of issues/PRs. */ + importProject?: Maybe; /** Invite someone to become an administrator of the enterprise. */ inviteEnterpriseAdmin?: Maybe; /** Links a project to a repository. */ @@ -11921,6 +11987,12 @@ export type MutationGrantMigratorRoleArgs = { }; +/** The root query for implementing GraphQL mutations. */ +export type MutationImportProjectArgs = { + input: ImportProjectInput; +}; + + /** The root query for implementing GraphQL mutations. */ export type MutationInviteEnterpriseAdminArgs = { input: InviteEnterpriseAdminInput; @@ -16031,6 +16103,14 @@ export type ProjectCardEdge = { node?: Maybe; }; +/** An issue or PR and its owning repository to be used in a project card. */ +export type ProjectCardImport = { + /** The issue or pull request number. */ + number: Scalars['Int']['input']; + /** Repository name with owner (owner/repository). */ + repository: Scalars['String']['input']; +}; + /** Types that can be inside Project Cards. */ export type ProjectCardItem = Issue | PullRequest; @@ -16100,6 +16180,16 @@ export type ProjectColumnEdge = { node?: Maybe; }; +/** A project column and a list of its issues and PRs. */ +export type ProjectColumnImport = { + /** The name of the column. */ + columnName: Scalars['String']['input']; + /** A list of issues and pull requests in the column. */ + issues?: InputMaybe>; + /** The position of the column, starting from 0. */ + position: Scalars['Int']['input']; +}; + /** The semantic purpose of the column - todo, in progress, or done. */ export type ProjectColumnPurpose = /** The column contains cards which are complete */ @@ -17555,6 +17645,8 @@ export type PullRequest = Assignable & Closable & Comment & Labelable & Lockable bodyHTML: Scalars['HTML']['output']; /** The body rendered to text. */ bodyText: Scalars['String']['output']; + /** Whether or not the pull request is rebaseable. */ + canBeRebased: Scalars['Boolean']['output']; /** The number of changed files in this pull request. */ changedFiles: Scalars['Int']['output']; /** The HTTP path for the checks of this pull request. */ @@ -17632,6 +17724,8 @@ export type PullRequest = Assignable & Closable & Comment & Labelable & Lockable mergeQueue?: Maybe; /** The merge queue entry of the pull request in the base branch's merge queue */ mergeQueueEntry?: Maybe; + /** Detailed information about the current pull request merge state status. */ + mergeStateStatus: MergeStateStatus; /** Whether or not the pull request can be merged based on the existence of merge conflicts. */ mergeable: MergeableState; /** Whether or not the pull request was merged. */ @@ -20044,6 +20138,10 @@ export type RemovedFromProjectEvent = Node & { databaseId?: Maybe; /** The Node ID of the RemovedFromProjectEvent object */ id: Scalars['ID']['output']; + /** Project referenced by event. */ + project?: Maybe; + /** Column name referenced by this project event. */ + projectColumnName: Scalars['String']['output']; }; /** Represents a 'renamed' event on a given issue or pull request */ diff --git a/schema.json b/schema.json index 1bc9a87fc..409f8d363 100644 --- a/schema.json +++ b/schema.json @@ -2593,6 +2593,46 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "project", + "description": "Project referenced by event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Project", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectCard", + "description": "Project card referenced by this project event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ProjectCard", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectColumnName", + "description": "Column name referenced by this project event.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -16959,6 +16999,46 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "project", + "description": "Project referenced by event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Project", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectCard", + "description": "Project card referenced by this project event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ProjectCard", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectColumnName", + "description": "Column name referenced by this project event.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -42193,6 +42273,132 @@ ], "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ImportProjectInput", + "description": "Autogenerated input type of ImportProject", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "ownerName", + "description": "The name of the Organization or User to create the Project under.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "name", + "description": "The name of Project.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "body", + "description": "The description of Project.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "public", + "description": "Whether the Project is public or not.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false" + }, + { + "name": "columnImports", + "description": "A list of columns containing issues and pull requests.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProjectColumnImport", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ImportProjectPayload", + "description": "Autogenerated return type of ImportProject", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "project", + "description": "The new Project!", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Project", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "Int", @@ -52816,6 +53022,65 @@ ], "possibleTypes": null }, + { + "kind": "ENUM", + "name": "MergeStateStatus", + "description": "Detailed status information about a pull request merge.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "DIRTY", + "description": "The merge commit cannot be cleanly created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNKNOWN", + "description": "The state cannot currently be determined.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BLOCKED", + "description": "The merge is blocked.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BEHIND", + "description": "The head ref is out of date.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "DRAFT", + "description": "The merge is blocked due to the pull request being a draft.", + "isDeprecated": true, + "deprecationReason": "DRAFT state will be removed from this enum and `isDraft` should be used instead Use PullRequest.isDraft instead. Removal on 2021-01-01 UTC." + }, + { + "name": "UNSTABLE", + "description": "Mergeable with non-passing commit status.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "HAS_HOOKS", + "description": "Mergeable with passing commit status and pre-receive hooks.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CLEAN", + "description": "Mergeable and passing commit status.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "ENUM", "name": "MergeableState", @@ -54591,6 +54856,62 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "previousProjectColumnName", + "description": "Column name the issue or pull request was moved from.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "project", + "description": "Project referenced by event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Project", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectCard", + "description": "Project card referenced by this project event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ProjectCard", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectColumnName", + "description": "Column name the issue or pull request was moved to.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -57417,6 +57738,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "importProject", + "description": "Creates a new project by importing columns and a list of issues/PRs.", + "args": [ + { + "name": "input", + "description": "Parameters for ImportProject", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ImportProjectInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ImportProjectPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "inviteEnterpriseAdmin", "description": "Invite someone to become an administrator of the enterprise.", @@ -81467,6 +81815,45 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ProjectCardImport", + "description": "An issue or PR and its owning repository to be used in a project card.", + "fields": null, + "inputFields": [ + { + "name": "repository", + "description": "Repository name with owner (owner/repository).", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "number", + "description": "The issue or pull request number.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "UNION", "name": "ProjectCardItem", @@ -81855,6 +82242,63 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ProjectColumnImport", + "description": "A project column and a list of its issues and PRs.", + "fields": null, + "inputFields": [ + { + "name": "columnName", + "description": "The name of the column.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "position", + "description": "The position of the column, starting from 0.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "issues", + "description": "A list of issues and pull requests in the column.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProjectCardImport", + "ofType": null + } + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "ProjectColumnPurpose", @@ -89648,6 +90092,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "canBeRebased", + "description": "Whether or not the pull request is rebaseable.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "changedFiles", "description": "The number of changed files in this pull request.", @@ -90520,6 +90980,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "mergeStateStatus", + "description": "Detailed information about the current pull request merge state status.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MergeStateStatus", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "mergeable", "description": "Whether or not the pull request can be merged based on the existence of merge conflicts.", @@ -103560,6 +104036,34 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "project", + "description": "Project referenced by event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Project", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectColumnName", + "description": "Column name referenced by this project event.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null,