Skip to content

feat: convertProjectV2DraftIssueItemToIssue() mutation #962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3418,6 +3418,25 @@ export type ConvertProjectCardNoteToIssuePayload = {
projectCard?: Maybe<ProjectCard>;
};

/** Autogenerated input type of ConvertProjectV2DraftIssueItemToIssue */
export type ConvertProjectV2DraftIssueItemToIssueInput = {
/** A unique identifier for the client performing the mutation. */
clientMutationId?: InputMaybe<Scalars['String']['input']>;
/** 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<Scalars['String']['output']>;
/** The updated project item. */
item?: Maybe<ProjectV2Item>;
};

/** Autogenerated input type of ConvertPullRequestToDraft */
export type ConvertPullRequestToDraftInput = {
/** A unique identifier for the client performing the mutation. */
Expand Down Expand Up @@ -11428,6 +11447,8 @@ export type Mutation = {
closePullRequest?: Maybe<ClosePullRequestPayload>;
/** Convert a project note card to one associated with a newly created issue. */
convertProjectCardNoteToIssue?: Maybe<ConvertProjectCardNoteToIssuePayload>;
/** Converts a projectV2 draft issue item to an issue. */
convertProjectV2DraftIssueItemToIssue?: Maybe<ConvertProjectV2DraftIssueItemToIssuePayload>;
/** Converts a pull request to draft */
convertPullRequestToDraft?: Maybe<ConvertPullRequestToDraftPayload>;
/** Copy a project. */
Expand Down Expand Up @@ -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;
Expand Down
45 changes: 45 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
"""
Expand Down
111 changes: 111 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down