From d345d192b647f3f81ef85d09850b6fc6949de1e1 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 21 Jun 2024 11:33:30 -0500 Subject: [PATCH] feat: `convertProjectV2DraftIssueItemToIssue()` mutation (#962) --- schema.d.ts | 27 ++++++++++++ schema.graphql | 45 ++++++++++++++++++++ schema.json | 111 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+) diff --git a/schema.d.ts b/schema.d.ts index 19c4bdd06..a6a54df3b 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -3418,6 +3418,25 @@ export type ConvertProjectCardNoteToIssuePayload = { projectCard?: Maybe; }; +/** Autogenerated input type of ConvertProjectV2DraftIssueItemToIssue */ +export type ConvertProjectV2DraftIssueItemToIssueInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The ID of the draft issue ProjectV2Item to convert. */ + itemId: Scalars['ID']['input']; + /** The ID of the repository to create the issue in. */ + repositoryId: Scalars['ID']['input']; +}; + +/** Autogenerated return type of ConvertProjectV2DraftIssueItemToIssue. */ +export type ConvertProjectV2DraftIssueItemToIssuePayload = { + __typename?: 'ConvertProjectV2DraftIssueItemToIssuePayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The updated project item. */ + item?: Maybe; +}; + /** Autogenerated input type of ConvertPullRequestToDraft */ export type ConvertPullRequestToDraftInput = { /** A unique identifier for the client performing the mutation. */ @@ -11428,6 +11447,8 @@ export type Mutation = { closePullRequest?: Maybe; /** Convert a project note card to one associated with a newly created issue. */ convertProjectCardNoteToIssue?: Maybe; + /** Converts a projectV2 draft issue item to an issue. */ + convertProjectV2DraftIssueItemToIssue?: Maybe; /** Converts a pull request to draft */ convertPullRequestToDraft?: Maybe; /** Copy a project. */ @@ -12156,6 +12177,12 @@ export type MutationConvertProjectCardNoteToIssueArgs = { }; +/** The root query for implementing GraphQL mutations. */ +export type MutationConvertProjectV2DraftIssueItemToIssueArgs = { + input: ConvertProjectV2DraftIssueItemToIssueInput; +}; + + /** The root query for implementing GraphQL mutations. */ export type MutationConvertPullRequestToDraftArgs = { input: ConvertPullRequestToDraftInput; diff --git a/schema.graphql b/schema.graphql index 2a1c89906..2d368dfef 100644 --- a/schema.graphql +++ b/schema.graphql @@ -6596,6 +6596,41 @@ type ConvertProjectCardNoteToIssuePayload { projectCard: ProjectCard } +""" +Autogenerated input type of ConvertProjectV2DraftIssueItemToIssue +""" +input ConvertProjectV2DraftIssueItemToIssueInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The ID of the draft issue ProjectV2Item to convert. + """ + itemId: ID! + + """ + The ID of the repository to create the issue in. + """ + repositoryId: ID! +} + +""" +Autogenerated return type of ConvertProjectV2DraftIssueItemToIssue. +""" +type ConvertProjectV2DraftIssueItemToIssuePayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The updated project item. + """ + item: ProjectV2Item +} + """ Autogenerated input type of ConvertPullRequestToDraft """ @@ -22857,6 +22892,16 @@ type Mutation { input: ConvertProjectCardNoteToIssueInput! ): ConvertProjectCardNoteToIssuePayload + """ + Converts a projectV2 draft issue item to an issue. + """ + convertProjectV2DraftIssueItemToIssue( + """ + Parameters for ConvertProjectV2DraftIssueItemToIssue + """ + input: ConvertProjectV2DraftIssueItemToIssueInput! + ): ConvertProjectV2DraftIssueItemToIssuePayload + """ Converts a pull request to draft """ diff --git a/schema.json b/schema.json index 0c05b3cae..3ca1497b8 100644 --- a/schema.json +++ b/schema.json @@ -17111,6 +17111,90 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ConvertProjectV2DraftIssueItemToIssueInput", + "description": "Autogenerated input type of ConvertProjectV2DraftIssueItemToIssue", + "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": "itemId", + "description": "The ID of the draft issue ProjectV2Item to convert.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "repositoryId", + "description": "The ID of the repository to create the issue in.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ConvertProjectV2DraftIssueItemToIssuePayload", + "description": "Autogenerated return type of ConvertProjectV2DraftIssueItemToIssue.", + "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": "item", + "description": "The updated project item.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ProjectV2Item", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "ConvertPullRequestToDraftInput", @@ -58247,6 +58331,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "convertProjectV2DraftIssueItemToIssue", + "description": "Converts a projectV2 draft issue item to an issue.", + "args": [ + { + "name": "input", + "description": "Parameters for ConvertProjectV2DraftIssueItemToIssue", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ConvertProjectV2DraftIssueItemToIssueInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ConvertProjectV2DraftIssueItemToIssuePayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "convertPullRequestToDraft", "description": "Converts a pull request to draft",