Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit e4b54a5

Browse files
Update GraphQL document
1 parent 0af7a6d commit e4b54a5

File tree

4 files changed

+105
-0
lines changed

4 files changed

+105
-0
lines changed

example/github/input_objects.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,30 @@ will be returned. This field takes precedence over emails.</p></td>
10991099

11001100
---
11011101

1102+
### ConvertPullRequestToDraftInput
1103+
1104+
<p>Autogenerated input type of ConvertPullRequestToDraft</p>
1105+
1106+
1107+
#### Input fields
1108+
1109+
<table>
1110+
<tr>
1111+
<th>Name</th>
1112+
<th>Description</th>
1113+
</tr>
1114+
<tr>
1115+
<td><strong>clientMutationId</strong> (<a href="scalars.md#string">String</a>)</td>
1116+
<td><p>A unique identifier for the client performing the mutation.</p></td>
1117+
</tr>
1118+
<tr>
1119+
<td><strong>pullRequestId</strong> (<a href="scalars.md#id">ID!</a>)</td>
1120+
<td><p>ID of the pull request to convert to draft</p></td>
1121+
</tr>
1122+
</table>
1123+
1124+
---
1125+
11021126
### CreateBranchProtectionRuleInput
11031127

11041128
<p>Autogenerated input type of CreateBranchProtectionRule</p>

example/github/mutations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,24 @@ The root query for implementing GraphQL mutations.
446446

447447
---
448448

449+
### convertPullRequestToDraft
450+
451+
<p>Converts a pull request to draft</p>
452+
453+
#### Input fields
454+
455+
- input ([ConvertPullRequestToDraftInput!](input_objects.md#convertpullrequesttodraftinput))
456+
457+
458+
#### Returns
459+
460+
| Name | Description |
461+
|------|-------------|
462+
| clientMutationId ([String](scalars.md#string)) | <p>A unique identifier for the client performing the mutation.</p> |
463+
| pullRequest ([PullRequest](objects.md#pullrequest)) | <p>The pull request that is now a draft.</p> |
464+
465+
---
466+
449467
### createBranchProtectionRule
450468

451469
<p>Create a new branch protection rule</p>

example/github/objects.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4410,6 +4410,29 @@ non-zero when the user has chosen to share their private contribution counts.</p
44104410

44114411
---
44124412

4413+
### ConvertPullRequestToDraftPayload
4414+
4415+
<p>Autogenerated return type of ConvertPullRequestToDraft</p>
4416+
4417+
#### Fields
4418+
4419+
<table>
4420+
<tr>
4421+
<th>Name</th>
4422+
<th>Description</th>
4423+
</tr>
4424+
<tr>
4425+
<td><strong>clientMutationId</strong> (<a href="scalars.md#string">String</a>)</td>
4426+
<td><p>A unique identifier for the client performing the mutation.</p></td>
4427+
</tr>
4428+
<tr>
4429+
<td><strong>pullRequest</strong> (<a href="objects.md#pullrequest">PullRequest</a>)</td>
4430+
<td><p>The pull request that is now a draft.</p></td>
4431+
</tr>
4432+
</table>
4433+
4434+
---
4435+
44134436
### ConvertToDraftEvent
44144437

44154438
<p>Represents a &lsquo;convert_to_draft&rsquo; event on a given pull request.</p>

example/github/schema.graphql

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4813,6 +4813,36 @@ type ConvertProjectCardNoteToIssuePayload {
48134813
projectCard: ProjectCard
48144814
}
48154815

4816+
"""
4817+
Autogenerated input type of ConvertPullRequestToDraft
4818+
"""
4819+
input ConvertPullRequestToDraftInput {
4820+
"""
4821+
A unique identifier for the client performing the mutation.
4822+
"""
4823+
clientMutationId: String
4824+
4825+
"""
4826+
ID of the pull request to convert to draft
4827+
"""
4828+
pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])
4829+
}
4830+
4831+
"""
4832+
Autogenerated return type of ConvertPullRequestToDraft
4833+
"""
4834+
type ConvertPullRequestToDraftPayload {
4835+
"""
4836+
A unique identifier for the client performing the mutation.
4837+
"""
4838+
clientMutationId: String
4839+
4840+
"""
4841+
The pull request that is now a draft.
4842+
"""
4843+
pullRequest: PullRequest
4844+
}
4845+
48164846
"""
48174847
Represents a 'convert_to_draft' event on a given pull request.
48184848
"""
@@ -15591,6 +15621,16 @@ type Mutation {
1559115621
input: ConvertProjectCardNoteToIssueInput!
1559215622
): ConvertProjectCardNoteToIssuePayload
1559315623

15624+
"""
15625+
Converts a pull request to draft
15626+
"""
15627+
convertPullRequestToDraft(
15628+
"""
15629+
Parameters for ConvertPullRequestToDraft
15630+
"""
15631+
input: ConvertPullRequestToDraftInput!
15632+
): ConvertPullRequestToDraftPayload
15633+
1559415634
"""
1559515635
Create a new branch protection rule
1559615636
"""

0 commit comments

Comments
 (0)