Skip to content

Commit 0d95543

Browse files
GraphQL schema update (#62360)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
1 parent 168be8d commit 0d95543

7 files changed

Lines changed: 234 additions & 0 deletions

File tree

src/graphql/data/fpt/category-map.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@
15701570
"issuefieldsingleselectoptioninput": "issues",
15711571
"issuefilters": "issues",
15721572
"issueorder": "issues",
1573+
"issuestateupdateinput": "issues",
15731574
"issuetypeorder": "issues",
15741575
"issuetypeupdateinput": "issues",
15751576
"labelorder": "issues",

src/graphql/data/fpt/changelog.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"<p>Type <code>IssueStateUpdateInput</code> was added</p>",
8+
"<p>Input field <code>confidence</code> of type <code>IssueEventConfidenceLevel</code> was added to input object type <code>IssueStateUpdateInput</code></p>",
9+
"<p>Input field <code>duplicateIssueId</code> of type <code>ID</code> was added to input object type <code>IssueStateUpdateInput</code></p>",
10+
"<p>Input field <code>rationale</code> of type <code>String</code> was added to input object type <code>IssueStateUpdateInput</code></p>",
11+
"<p>Input field <code>stateReason</code> of type <code>IssueClosedStateReason</code> was added to input object type <code>IssueStateUpdateInput</code></p>",
12+
"<p>Input field <code>suggest</code> of type <code>Boolean</code> was added to input object type <code>IssueStateUpdateInput</code></p>",
13+
"<p>Input field <code>value</code> of type <code>IssueState!</code> was added to input object type <code>IssueStateUpdateInput</code></p>",
14+
"<p>Input field <code>stateInput</code> of type <code>IssueStateUpdateInput</code> was added to input object type <code>UpdateIssueInput</code></p>"
15+
]
16+
}
17+
],
18+
"previewChanges": [],
19+
"upcomingChanges": [],
20+
"date": "2026-07-20"
21+
},
222
{
323
"schemaChanges": [
424
{

src/graphql/data/fpt/schema-issues.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11391,6 +11391,59 @@
1139111391
],
1139211392
"category": "issues"
1139311393
},
11394+
{
11395+
"name": "IssueStateUpdateInput",
11396+
"id": "issuestateupdateinput",
11397+
"href": "/graphql/reference/issues#input-object-issuestateupdateinput",
11398+
"description": "<p>Specifies a target state for an issue, with optional metadata such as a\nrationale, close reason, or duplicate reference. Suggestion metadata\n(<code>rationale</code>, <code>confidence</code>, <code>suggest</code>) is only meaningful when <code>value</code> is\n<code>CLOSED</code>; it is silently ignored otherwise.</p>",
11399+
"isDeprecated": false,
11400+
"inputFields": [
11401+
{
11402+
"name": "confidence",
11403+
"description": "<p>The confidence level the agent had when suggesting this close. Only meaningful when <code>value</code> is <code>CLOSED</code>.</p>",
11404+
"type": "IssueEventConfidenceLevel",
11405+
"id": "issueeventconfidencelevel",
11406+
"href": "/graphql/reference/issues#enum-issueeventconfidencelevel"
11407+
},
11408+
{
11409+
"name": "duplicateIssueId",
11410+
"description": "<p>The ID of the issue that this is a duplicate of. Only meaningful when <code>value</code>\nis <code>CLOSED</code> and <code>stateReason</code> is <code>DUPLICATE</code>.</p>",
11411+
"type": "ID",
11412+
"id": "id",
11413+
"href": "/graphql/reference/other#scalar-id",
11414+
"isDeprecated": false
11415+
},
11416+
{
11417+
"name": "rationale",
11418+
"description": "<p>Optional rationale describing why the issue is being closed. Only meaningful when <code>value</code> is <code>CLOSED</code>. Max 280 characters.</p>",
11419+
"type": "String",
11420+
"id": "string",
11421+
"href": "/graphql/reference/other#scalar-string"
11422+
},
11423+
{
11424+
"name": "stateReason",
11425+
"description": "<p>The reason for closing the issue. Only meaningful when <code>value</code> is <code>CLOSED</code>.</p>",
11426+
"type": "IssueClosedStateReason",
11427+
"id": "issueclosedstatereason",
11428+
"href": "/graphql/reference/issues#enum-issueclosedstatereason"
11429+
},
11430+
{
11431+
"name": "suggest",
11432+
"description": "<p>If true, the close is stored as a pending suggestion for human review rather\nthan being applied directly. Only meaningful when <code>value</code> is <code>CLOSED</code>;\nsilently ignored otherwise.</p>",
11433+
"type": "Boolean",
11434+
"id": "boolean",
11435+
"href": "/graphql/reference/other#scalar-boolean"
11436+
},
11437+
{
11438+
"name": "value",
11439+
"description": "<p>The target state.</p>",
11440+
"type": "IssueState!",
11441+
"id": "issuestate",
11442+
"href": "/graphql/reference/issues#enum-issuestate"
11443+
}
11444+
],
11445+
"category": "issues"
11446+
},
1139411447
{
1139511448
"name": "IssueTypeOrder",
1139611449
"id": "issuetypeorder",
@@ -12316,6 +12369,13 @@
1231612369
"id": "issuestate",
1231712370
"href": "/graphql/reference/issues#enum-issuestate"
1231812371
},
12372+
{
12373+
"name": "stateInput",
12374+
"description": "<p>The desired issue state, with optional rationale, state reason, or duplicate reference. Mutually exclusive with <code>state</code>.</p>",
12375+
"type": "IssueStateUpdateInput",
12376+
"id": "issuestateupdateinput",
12377+
"href": "/graphql/reference/issues#input-object-issuestateupdateinput"
12378+
},
1231912379
{
1232012380
"name": "title",
1232112381
"description": "<p>The title for the issue.</p>",

src/graphql/data/fpt/schema.docs.graphql

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22269,6 +22269,47 @@ enum IssueStateReason @docsCategory(name: "issues") {
2226922269
REOPENED
2227022270
}
2227122271

22272+
"""
22273+
Specifies a target state for an issue, with optional metadata such as a
22274+
rationale, close reason, or duplicate reference. Suggestion metadata
22275+
(`rationale`, `confidence`, `suggest`) is only meaningful when `value` is
22276+
`CLOSED`; it is silently ignored otherwise.
22277+
"""
22278+
input IssueStateUpdateInput @docsCategory(name: "issues") {
22279+
"""
22280+
The confidence level the agent had when suggesting this close. Only meaningful when `value` is `CLOSED`.
22281+
"""
22282+
confidence: IssueEventConfidenceLevel
22283+
22284+
"""
22285+
The ID of the issue that this is a duplicate of. Only meaningful when `value`
22286+
is `CLOSED` and `stateReason` is `DUPLICATE`.
22287+
"""
22288+
duplicateIssueId: ID @possibleTypes(concreteTypes: ["Issue"])
22289+
22290+
"""
22291+
Optional rationale describing why the issue is being closed. Only meaningful when `value` is `CLOSED`. Max 280 characters.
22292+
"""
22293+
rationale: String
22294+
22295+
"""
22296+
The reason for closing the issue. Only meaningful when `value` is `CLOSED`.
22297+
"""
22298+
stateReason: IssueClosedStateReason
22299+
22300+
"""
22301+
If true, the close is stored as a pending suggestion for human review rather
22302+
than being applied directly. Only meaningful when `value` is `CLOSED`;
22303+
silently ignored otherwise.
22304+
"""
22305+
suggest: Boolean
22306+
22307+
"""
22308+
The target state.
22309+
"""
22310+
value: IssueState!
22311+
}
22312+
2227222313
"""
2227322314
A repository issue template.
2227422315
"""
@@ -68487,6 +68528,11 @@ input UpdateIssueInput {
6848768528
"""
6848868529
state: IssueState
6848968530

68531+
"""
68532+
The desired issue state, with optional rationale, state reason, or duplicate reference. Mutually exclusive with `state`.
68533+
"""
68534+
stateInput: IssueStateUpdateInput
68535+
6849068536
"""
6849168537
The title for the issue.
6849268538
"""

src/graphql/data/ghec/category-map.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@
15701570
"issuefieldsingleselectoptioninput": "issues",
15711571
"issuefilters": "issues",
15721572
"issueorder": "issues",
1573+
"issuestateupdateinput": "issues",
15731574
"issuetypeorder": "issues",
15741575
"issuetypeupdateinput": "issues",
15751576
"labelorder": "issues",

src/graphql/data/ghec/schema-issues.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11391,6 +11391,59 @@
1139111391
],
1139211392
"category": "issues"
1139311393
},
11394+
{
11395+
"name": "IssueStateUpdateInput",
11396+
"id": "issuestateupdateinput",
11397+
"href": "/graphql/reference/issues#input-object-issuestateupdateinput",
11398+
"description": "<p>Specifies a target state for an issue, with optional metadata such as a\nrationale, close reason, or duplicate reference. Suggestion metadata\n(<code>rationale</code>, <code>confidence</code>, <code>suggest</code>) is only meaningful when <code>value</code> is\n<code>CLOSED</code>; it is silently ignored otherwise.</p>",
11399+
"isDeprecated": false,
11400+
"inputFields": [
11401+
{
11402+
"name": "confidence",
11403+
"description": "<p>The confidence level the agent had when suggesting this close. Only meaningful when <code>value</code> is <code>CLOSED</code>.</p>",
11404+
"type": "IssueEventConfidenceLevel",
11405+
"id": "issueeventconfidencelevel",
11406+
"href": "/graphql/reference/issues#enum-issueeventconfidencelevel"
11407+
},
11408+
{
11409+
"name": "duplicateIssueId",
11410+
"description": "<p>The ID of the issue that this is a duplicate of. Only meaningful when <code>value</code>\nis <code>CLOSED</code> and <code>stateReason</code> is <code>DUPLICATE</code>.</p>",
11411+
"type": "ID",
11412+
"id": "id",
11413+
"href": "/graphql/reference/other#scalar-id",
11414+
"isDeprecated": false
11415+
},
11416+
{
11417+
"name": "rationale",
11418+
"description": "<p>Optional rationale describing why the issue is being closed. Only meaningful when <code>value</code> is <code>CLOSED</code>. Max 280 characters.</p>",
11419+
"type": "String",
11420+
"id": "string",
11421+
"href": "/graphql/reference/other#scalar-string"
11422+
},
11423+
{
11424+
"name": "stateReason",
11425+
"description": "<p>The reason for closing the issue. Only meaningful when <code>value</code> is <code>CLOSED</code>.</p>",
11426+
"type": "IssueClosedStateReason",
11427+
"id": "issueclosedstatereason",
11428+
"href": "/graphql/reference/issues#enum-issueclosedstatereason"
11429+
},
11430+
{
11431+
"name": "suggest",
11432+
"description": "<p>If true, the close is stored as a pending suggestion for human review rather\nthan being applied directly. Only meaningful when <code>value</code> is <code>CLOSED</code>;\nsilently ignored otherwise.</p>",
11433+
"type": "Boolean",
11434+
"id": "boolean",
11435+
"href": "/graphql/reference/other#scalar-boolean"
11436+
},
11437+
{
11438+
"name": "value",
11439+
"description": "<p>The target state.</p>",
11440+
"type": "IssueState!",
11441+
"id": "issuestate",
11442+
"href": "/graphql/reference/issues#enum-issuestate"
11443+
}
11444+
],
11445+
"category": "issues"
11446+
},
1139411447
{
1139511448
"name": "IssueTypeOrder",
1139611449
"id": "issuetypeorder",
@@ -12316,6 +12369,13 @@
1231612369
"id": "issuestate",
1231712370
"href": "/graphql/reference/issues#enum-issuestate"
1231812371
},
12372+
{
12373+
"name": "stateInput",
12374+
"description": "<p>The desired issue state, with optional rationale, state reason, or duplicate reference. Mutually exclusive with <code>state</code>.</p>",
12375+
"type": "IssueStateUpdateInput",
12376+
"id": "issuestateupdateinput",
12377+
"href": "/graphql/reference/issues#input-object-issuestateupdateinput"
12378+
},
1231912379
{
1232012380
"name": "title",
1232112381
"description": "<p>The title for the issue.</p>",

src/graphql/data/ghec/schema.docs.graphql

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22269,6 +22269,47 @@ enum IssueStateReason @docsCategory(name: "issues") {
2226922269
REOPENED
2227022270
}
2227122271

22272+
"""
22273+
Specifies a target state for an issue, with optional metadata such as a
22274+
rationale, close reason, or duplicate reference. Suggestion metadata
22275+
(`rationale`, `confidence`, `suggest`) is only meaningful when `value` is
22276+
`CLOSED`; it is silently ignored otherwise.
22277+
"""
22278+
input IssueStateUpdateInput @docsCategory(name: "issues") {
22279+
"""
22280+
The confidence level the agent had when suggesting this close. Only meaningful when `value` is `CLOSED`.
22281+
"""
22282+
confidence: IssueEventConfidenceLevel
22283+
22284+
"""
22285+
The ID of the issue that this is a duplicate of. Only meaningful when `value`
22286+
is `CLOSED` and `stateReason` is `DUPLICATE`.
22287+
"""
22288+
duplicateIssueId: ID @possibleTypes(concreteTypes: ["Issue"])
22289+
22290+
"""
22291+
Optional rationale describing why the issue is being closed. Only meaningful when `value` is `CLOSED`. Max 280 characters.
22292+
"""
22293+
rationale: String
22294+
22295+
"""
22296+
The reason for closing the issue. Only meaningful when `value` is `CLOSED`.
22297+
"""
22298+
stateReason: IssueClosedStateReason
22299+
22300+
"""
22301+
If true, the close is stored as a pending suggestion for human review rather
22302+
than being applied directly. Only meaningful when `value` is `CLOSED`;
22303+
silently ignored otherwise.
22304+
"""
22305+
suggest: Boolean
22306+
22307+
"""
22308+
The target state.
22309+
"""
22310+
value: IssueState!
22311+
}
22312+
2227222313
"""
2227322314
A repository issue template.
2227422315
"""
@@ -68487,6 +68528,11 @@ input UpdateIssueInput {
6848768528
"""
6848868529
state: IssueState
6848968530

68531+
"""
68532+
The desired issue state, with optional rationale, state reason, or duplicate reference. Mutually exclusive with `state`.
68533+
"""
68534+
stateInput: IssueStateUpdateInput
68535+
6849068536
"""
6849168537
The title for the issue.
6849268538
"""

0 commit comments

Comments
 (0)