Skip to content

Commit 77fdace

Browse files
GraphQL schema update (#61677)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
1 parent 630dd17 commit 77fdace

9 files changed

Lines changed: 158 additions & 0 deletions

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@
12131213
"commentcannotupdatereason": "issues",
12141214
"issueclosedstatereason": "issues",
12151215
"issuecommentorderfield": "issues",
1216+
"issuecreationpolicy": "issues",
12161217
"issuedependencyorderfield": "issues",
12171218
"issuefielddatatype": "issues",
12181219
"issuefieldorderfield": "issues",

src/graphql/data/fpt/changelog.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"<p>Type <code>IssueCreationPolicy</code> was added</p>",
8+
"<p>Enum value <code>ALL</code> was added to enum <code>IssueCreationPolicy</code></p>",
9+
"<p>Enum value 'COLLABORATORS_ONLY<code>was added to enum</code>IssueCreationPolicy'</p>",
10+
"<p>Field <code>issueCreationPolicy</code> was added to object type <code>Repository</code></p>",
11+
"<p>Field <code>viewerCanCreateIssues</code> was added to object type <code>Repository</code></p>",
12+
"<p>Field <code>issueCreationPolicy</code> was added to interface <code>RepositoryInfo</code></p>"
13+
]
14+
}
15+
],
16+
"previewChanges": [],
17+
"upcomingChanges": [],
18+
"date": "2026-06-10"
19+
},
220
{
321
"schemaChanges": [
422
{

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9168,6 +9168,24 @@
91689168
],
91699169
"category": "issues"
91709170
},
9171+
{
9172+
"name": "IssueCreationPolicy",
9173+
"id": "issuecreationpolicy",
9174+
"href": "/graphql/reference/issues#enum-issuecreationpolicy",
9175+
"description": "<p>The policy controlling who can create issues in a repository.</p>",
9176+
"isDeprecated": false,
9177+
"values": [
9178+
{
9179+
"name": "ALL",
9180+
"description": "<p>Anyone can create issues.</p>"
9181+
},
9182+
{
9183+
"name": "COLLABORATORS_ONLY",
9184+
"description": "<p>Only collaborators can create issues.</p>"
9185+
}
9186+
],
9187+
"category": "issues"
9188+
},
91719189
{
91729190
"name": "IssueDependencyOrderField",
91739191
"id": "issuedependencyorderfield",

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4235,6 +4235,13 @@
42354235
}
42364236
]
42374237
},
4238+
{
4239+
"name": "issueCreationPolicy",
4240+
"description": "<p>The policy controlling who can create issues in this repository.</p>",
4241+
"type": "IssueCreationPolicy",
4242+
"id": "issuecreationpolicy",
4243+
"href": "/graphql/reference/issues#enum-issuecreationpolicy"
4244+
},
42384245
{
42394246
"name": "issueFields",
42404247
"description": "<p>A list of the repository's issue fields, inherited from the organization.</p>",
@@ -6155,6 +6162,13 @@
61556162
"id": "boolean",
61566163
"href": "/graphql/reference/other#scalar-boolean"
61576164
},
6165+
{
6166+
"name": "viewerCanCreateIssues",
6167+
"description": "<p>Indicates whether the current user can create issues in this repository.</p>",
6168+
"type": "Boolean!",
6169+
"id": "boolean",
6170+
"href": "/graphql/reference/other#scalar-boolean"
6171+
},
61586172
{
61596173
"name": "viewerCanCreateProjects",
61606174
"description": "<p>Can the current viewer create new projects on this owner.</p>",
@@ -8335,6 +8349,13 @@
83358349
"id": "boolean",
83368350
"href": "/graphql/reference/other#scalar-boolean"
83378351
},
8352+
{
8353+
"name": "issueCreationPolicy",
8354+
"description": "<p>The policy controlling who can create issues in this repository.</p>",
8355+
"type": "IssueCreationPolicy",
8356+
"id": "issuecreationpolicy",
8357+
"href": "/graphql/reference/issues#enum-issuecreationpolicy"
8358+
},
83388359
{
83398360
"name": "licenseInfo",
83408361
"description": "<p>The license associated with the repository.</p>",

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20996,6 +20996,21 @@ type IssueContributionsByRepository @docsCategory(name: "issues") {
2099620996
repository: Repository!
2099720997
}
2099820998

20999+
"""
21000+
The policy controlling who can create issues in a repository.
21001+
"""
21002+
enum IssueCreationPolicy @docsCategory(name: "issues") {
21003+
"""
21004+
Anyone can create issues.
21005+
"""
21006+
ALL
21007+
21008+
"""
21009+
Only collaborators can create issues.
21010+
"""
21011+
COLLABORATORS_ONLY
21012+
}
21013+
2099921014
"""
2100021015
Summary of the state of an issue's dependencies
2100121016
"""
@@ -53004,6 +53019,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5300453019
number: Int!
5300553020
): Issue
5300653021

53022+
"""
53023+
The policy controlling who can create issues in this repository.
53024+
"""
53025+
issueCreationPolicy: IssueCreationPolicy
53026+
5300753027
"""
5300853028
A list of the repository's issue fields, inherited from the organization
5300953029
"""
@@ -54115,6 +54135,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5411554135
"""
5411654136
viewerCanAdminister: Boolean!
5411754137

54138+
"""
54139+
Indicates whether the current user can create issues in this repository.
54140+
"""
54141+
viewerCanCreateIssues: Boolean!
54142+
5411854143
"""
5411954144
Can the current viewer create new projects on this owner.
5412054145
"""
@@ -54877,6 +54902,11 @@ interface RepositoryInfo @docsCategory(name: "repos") {
5487754902
"""
5487854903
isTemplate: Boolean!
5487954904

54905+
"""
54906+
The policy controlling who can create issues in this repository.
54907+
"""
54908+
issueCreationPolicy: IssueCreationPolicy
54909+
5488054910
"""
5488154911
The license associated with the repository
5488254912
"""

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@
12131213
"commentcannotupdatereason": "issues",
12141214
"issueclosedstatereason": "issues",
12151215
"issuecommentorderfield": "issues",
1216+
"issuecreationpolicy": "issues",
12161217
"issuedependencyorderfield": "issues",
12171218
"issuefielddatatype": "issues",
12181219
"issuefieldorderfield": "issues",

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9168,6 +9168,24 @@
91689168
],
91699169
"category": "issues"
91709170
},
9171+
{
9172+
"name": "IssueCreationPolicy",
9173+
"id": "issuecreationpolicy",
9174+
"href": "/graphql/reference/issues#enum-issuecreationpolicy",
9175+
"description": "<p>The policy controlling who can create issues in a repository.</p>",
9176+
"isDeprecated": false,
9177+
"values": [
9178+
{
9179+
"name": "ALL",
9180+
"description": "<p>Anyone can create issues.</p>"
9181+
},
9182+
{
9183+
"name": "COLLABORATORS_ONLY",
9184+
"description": "<p>Only collaborators can create issues.</p>"
9185+
}
9186+
],
9187+
"category": "issues"
9188+
},
91719189
{
91729190
"name": "IssueDependencyOrderField",
91739191
"id": "issuedependencyorderfield",

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4235,6 +4235,13 @@
42354235
}
42364236
]
42374237
},
4238+
{
4239+
"name": "issueCreationPolicy",
4240+
"description": "<p>The policy controlling who can create issues in this repository.</p>",
4241+
"type": "IssueCreationPolicy",
4242+
"id": "issuecreationpolicy",
4243+
"href": "/graphql/reference/issues#enum-issuecreationpolicy"
4244+
},
42384245
{
42394246
"name": "issueFields",
42404247
"description": "<p>A list of the repository's issue fields, inherited from the organization.</p>",
@@ -6155,6 +6162,13 @@
61556162
"id": "boolean",
61566163
"href": "/graphql/reference/other#scalar-boolean"
61576164
},
6165+
{
6166+
"name": "viewerCanCreateIssues",
6167+
"description": "<p>Indicates whether the current user can create issues in this repository.</p>",
6168+
"type": "Boolean!",
6169+
"id": "boolean",
6170+
"href": "/graphql/reference/other#scalar-boolean"
6171+
},
61586172
{
61596173
"name": "viewerCanCreateProjects",
61606174
"description": "<p>Can the current viewer create new projects on this owner.</p>",
@@ -8335,6 +8349,13 @@
83358349
"id": "boolean",
83368350
"href": "/graphql/reference/other#scalar-boolean"
83378351
},
8352+
{
8353+
"name": "issueCreationPolicy",
8354+
"description": "<p>The policy controlling who can create issues in this repository.</p>",
8355+
"type": "IssueCreationPolicy",
8356+
"id": "issuecreationpolicy",
8357+
"href": "/graphql/reference/issues#enum-issuecreationpolicy"
8358+
},
83388359
{
83398360
"name": "licenseInfo",
83408361
"description": "<p>The license associated with the repository.</p>",

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20996,6 +20996,21 @@ type IssueContributionsByRepository @docsCategory(name: "issues") {
2099620996
repository: Repository!
2099720997
}
2099820998

20999+
"""
21000+
The policy controlling who can create issues in a repository.
21001+
"""
21002+
enum IssueCreationPolicy @docsCategory(name: "issues") {
21003+
"""
21004+
Anyone can create issues.
21005+
"""
21006+
ALL
21007+
21008+
"""
21009+
Only collaborators can create issues.
21010+
"""
21011+
COLLABORATORS_ONLY
21012+
}
21013+
2099921014
"""
2100021015
Summary of the state of an issue's dependencies
2100121016
"""
@@ -53004,6 +53019,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5300453019
number: Int!
5300553020
): Issue
5300653021

53022+
"""
53023+
The policy controlling who can create issues in this repository.
53024+
"""
53025+
issueCreationPolicy: IssueCreationPolicy
53026+
5300753027
"""
5300853028
A list of the repository's issue fields, inherited from the organization
5300953029
"""
@@ -54115,6 +54135,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5411554135
"""
5411654136
viewerCanAdminister: Boolean!
5411754137

54138+
"""
54139+
Indicates whether the current user can create issues in this repository.
54140+
"""
54141+
viewerCanCreateIssues: Boolean!
54142+
5411854143
"""
5411954144
Can the current viewer create new projects on this owner.
5412054145
"""
@@ -54877,6 +54902,11 @@ interface RepositoryInfo @docsCategory(name: "repos") {
5487754902
"""
5487854903
isTemplate: Boolean!
5487954904

54905+
"""
54906+
The policy controlling who can create issues in this repository.
54907+
"""
54908+
issueCreationPolicy: IssueCreationPolicy
54909+
5488054910
"""
5488154911
The license associated with the repository
5488254912
"""

0 commit comments

Comments
 (0)