Skip to content

Commit 72cedd7

Browse files
GraphQL schema update (#59738)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
1 parent b4797ab commit 72cedd7

File tree

5 files changed

+241
-0
lines changed

5 files changed

+241
-0
lines changed

src/graphql/data/fpt/changelog.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"<p>Type <code>PullRequestCreationPolicy</code> was added</p>",
8+
"<p>Enum value <code>ALL</code> was added to enum <code>PullRequestCreationPolicy</code></p>",
9+
"<p>Enum value 'COLLABORATORS_ONLY<code>was added to enum</code>PullRequestCreationPolicy'</p>",
10+
"<p>Field <code>hasPullRequestsEnabled</code> was added to object type <code>Repository</code></p>",
11+
"<p>Field <code>pullRequestCreationPolicy</code> was added to object type <code>Repository</code></p>",
12+
"<p>Field <code>hasPullRequestsEnabled</code> was added to interface <code>RepositoryInfo</code></p>",
13+
"<p>Field <code>pullRequestCreationPolicy</code> was added to interface <code>RepositoryInfo</code></p>",
14+
"<p>Input field <code>hasPullRequestsEnabled</code> of type <code>Boolean</code> was added to input object type <code>UpdateRepositoryInput</code></p>",
15+
"<p>Input field <code>pullRequestCreationPolicy</code> of type <code>PullRequestCreationPolicy</code> was added to input object type <code>UpdateRepositoryInput</code></p>"
16+
]
17+
}
18+
],
19+
"previewChanges": [],
20+
"upcomingChanges": [],
21+
"date": "2026-02-20"
22+
},
223
{
324
"schemaChanges": [
425
{

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41983,6 +41983,21 @@ type PullRequestContributionsByRepository {
4198341983
repository: Repository!
4198441984
}
4198541985

41986+
"""
41987+
The policy controlling who can create pull requests in a repository.
41988+
"""
41989+
enum PullRequestCreationPolicy {
41990+
"""
41991+
Anyone can create pull requests.
41992+
"""
41993+
ALL
41994+
41995+
"""
41996+
Only collaborators can create pull requests.
41997+
"""
41998+
COLLABORATORS_ONLY
41999+
}
42000+
4198642001
"""
4198742002
An edge in a connection.
4198842003
"""
@@ -50718,6 +50733,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5071850733
"""
5071950734
hasProjectsEnabled: Boolean!
5072050735

50736+
"""
50737+
Indicates if the repository has the pull requests feature enabled.
50738+
"""
50739+
hasPullRequestsEnabled: Boolean!
50740+
5072150741
"""
5072250742
Indicates if the repository displays a Sponsor button for financial contributions.
5072350743
"""
@@ -51419,6 +51439,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5141951439
number: Int!
5142051440
): PullRequest
5142151441

51442+
"""
51443+
The policy controlling who can create pull requests in this repository.
51444+
"""
51445+
pullRequestCreationPolicy: PullRequestCreationPolicy
51446+
5142251447
"""
5142351448
Returns a list of pull request templates associated to the repository
5142451449
"""
@@ -52586,6 +52611,11 @@ interface RepositoryInfo {
5258652611
"""
5258752612
hasProjectsEnabled: Boolean!
5258852613

52614+
"""
52615+
Indicates if the repository has the pull requests feature enabled.
52616+
"""
52617+
hasPullRequestsEnabled: Boolean!
52618+
5258952619
"""
5259052620
Indicates if the repository displays a Sponsor button for financial contributions.
5259152621
"""
@@ -52671,6 +52701,11 @@ interface RepositoryInfo {
5267152701
"""
5267252702
owner: RepositoryOwner!
5267352703

52704+
"""
52705+
The policy controlling who can create pull requests in this repository.
52706+
"""
52707+
pullRequestCreationPolicy: PullRequestCreationPolicy
52708+
5267452709
"""
5267552710
Identifies the date and time when the repository was last pushed to.
5267652711
"""
@@ -66684,6 +66719,11 @@ input UpdateRepositoryInput {
6668466719
"""
6668566720
hasProjectsEnabled: Boolean
6668666721

66722+
"""
66723+
Indicates if the repository should have the pull requests feature enabled.
66724+
"""
66725+
hasPullRequestsEnabled: Boolean
66726+
6668766727
"""
6668866728
Indicates if the repository displays a Sponsor button for financial contributions.
6668966729
"""
@@ -66704,6 +66744,11 @@ input UpdateRepositoryInput {
6670466744
"""
6670566745
name: String
6670666746

66747+
"""
66748+
The policy controlling who can create pull requests in this repository.
66749+
"""
66750+
pullRequestCreationPolicy: PullRequestCreationPolicy
66751+
6670766752
"""
6670866753
The ID of the repository to update.
6670966754
"""

src/graphql/data/fpt/schema.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66354,6 +66354,14 @@
6635466354
"kind": "scalars",
6635566355
"href": "/graphql/reference/scalars#boolean"
6635666356
},
66357+
{
66358+
"name": "hasPullRequestsEnabled",
66359+
"description": "<p>Indicates if the repository has the pull requests feature enabled.</p>",
66360+
"type": "Boolean!",
66361+
"id": "boolean",
66362+
"kind": "scalars",
66363+
"href": "/graphql/reference/scalars#boolean"
66364+
},
6635766365
{
6635866366
"name": "hasSponsorshipsEnabled",
6635966367
"description": "<p>Indicates if the repository displays a Sponsor button for financial contributions.</p>",
@@ -67679,6 +67687,14 @@
6767967687
}
6768067688
]
6768167689
},
67690+
{
67691+
"name": "pullRequestCreationPolicy",
67692+
"description": "<p>The policy controlling who can create pull requests in this repository.</p>",
67693+
"type": "PullRequestCreationPolicy",
67694+
"id": "pullrequestcreationpolicy",
67695+
"kind": "enums",
67696+
"href": "/graphql/reference/enums#pullrequestcreationpolicy"
67697+
},
6768267698
{
6768367699
"name": "pullRequestTemplates",
6768467700
"description": "<p>Returns a list of pull request templates associated to the repository.</p>",
@@ -86736,6 +86752,14 @@
8673686752
"kind": "scalars",
8673786753
"href": "/graphql/reference/scalars#boolean"
8673886754
},
86755+
{
86756+
"name": "hasPullRequestsEnabled",
86757+
"description": "<p>Indicates if the repository has the pull requests feature enabled.</p>",
86758+
"type": "Boolean!",
86759+
"id": "boolean",
86760+
"kind": "scalars",
86761+
"href": "/graphql/reference/scalars#boolean"
86762+
},
8673986763
{
8674086764
"name": "hasSponsorshipsEnabled",
8674186765
"description": "<p>Indicates if the repository displays a Sponsor button for financial contributions.</p>",
@@ -86872,6 +86896,14 @@
8687286896
"kind": "interfaces",
8687386897
"href": "/graphql/reference/interfaces#repositoryowner"
8687486898
},
86899+
{
86900+
"name": "pullRequestCreationPolicy",
86901+
"description": "<p>The policy controlling who can create pull requests in this repository.</p>",
86902+
"type": "PullRequestCreationPolicy",
86903+
"id": "pullrequestcreationpolicy",
86904+
"kind": "enums",
86905+
"href": "/graphql/reference/enums#pullrequestcreationpolicy"
86906+
},
8687586907
{
8687686908
"name": "pushedAt",
8687786909
"description": "<p>Identifies the date and time when the repository was last pushed to.</p>",
@@ -91818,6 +91850,23 @@
9181891850
}
9181991851
]
9182091852
},
91853+
{
91854+
"name": "PullRequestCreationPolicy",
91855+
"kind": "enums",
91856+
"id": "pullrequestcreationpolicy",
91857+
"href": "/graphql/reference/enums#pullrequestcreationpolicy",
91858+
"description": "<p>The policy controlling who can create pull requests in a repository.</p>",
91859+
"values": [
91860+
{
91861+
"name": "ALL",
91862+
"description": "<p>Anyone can create pull requests.</p>"
91863+
},
91864+
{
91865+
"name": "COLLABORATORS_ONLY",
91866+
"description": "<p>Only collaborators can create pull requests.</p>"
91867+
}
91868+
]
91869+
},
9182191870
{
9182291871
"name": "PullRequestMergeMethod",
9182391872
"kind": "enums",
@@ -111715,6 +111764,14 @@
111715111764
"kind": "scalars",
111716111765
"href": "/graphql/reference/scalars#boolean"
111717111766
},
111767+
{
111768+
"name": "hasPullRequestsEnabled",
111769+
"description": "<p>Indicates if the repository should have the pull requests feature enabled.</p>",
111770+
"type": "Boolean",
111771+
"id": "boolean",
111772+
"kind": "scalars",
111773+
"href": "/graphql/reference/scalars#boolean"
111774+
},
111718111775
{
111719111776
"name": "hasSponsorshipsEnabled",
111720111777
"description": "<p>Indicates if the repository displays a Sponsor button for financial contributions.</p>",
@@ -111747,6 +111804,14 @@
111747111804
"kind": "scalars",
111748111805
"href": "/graphql/reference/scalars#string"
111749111806
},
111807+
{
111808+
"name": "pullRequestCreationPolicy",
111809+
"description": "<p>The policy controlling who can create pull requests in this repository.</p>",
111810+
"type": "PullRequestCreationPolicy",
111811+
"id": "pullrequestcreationpolicy",
111812+
"kind": "enums",
111813+
"href": "/graphql/reference/enums#pullrequestcreationpolicy"
111814+
},
111750111815
{
111751111816
"name": "repositoryId",
111752111817
"description": "<p>The ID of the repository to update.</p>",

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41983,6 +41983,21 @@ type PullRequestContributionsByRepository {
4198341983
repository: Repository!
4198441984
}
4198541985

41986+
"""
41987+
The policy controlling who can create pull requests in a repository.
41988+
"""
41989+
enum PullRequestCreationPolicy {
41990+
"""
41991+
Anyone can create pull requests.
41992+
"""
41993+
ALL
41994+
41995+
"""
41996+
Only collaborators can create pull requests.
41997+
"""
41998+
COLLABORATORS_ONLY
41999+
}
42000+
4198642001
"""
4198742002
An edge in a connection.
4198842003
"""
@@ -50718,6 +50733,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5071850733
"""
5071950734
hasProjectsEnabled: Boolean!
5072050735

50736+
"""
50737+
Indicates if the repository has the pull requests feature enabled.
50738+
"""
50739+
hasPullRequestsEnabled: Boolean!
50740+
5072150741
"""
5072250742
Indicates if the repository displays a Sponsor button for financial contributions.
5072350743
"""
@@ -51419,6 +51439,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5141951439
number: Int!
5142051440
): PullRequest
5142151441

51442+
"""
51443+
The policy controlling who can create pull requests in this repository.
51444+
"""
51445+
pullRequestCreationPolicy: PullRequestCreationPolicy
51446+
5142251447
"""
5142351448
Returns a list of pull request templates associated to the repository
5142451449
"""
@@ -52586,6 +52611,11 @@ interface RepositoryInfo {
5258652611
"""
5258752612
hasProjectsEnabled: Boolean!
5258852613

52614+
"""
52615+
Indicates if the repository has the pull requests feature enabled.
52616+
"""
52617+
hasPullRequestsEnabled: Boolean!
52618+
5258952619
"""
5259052620
Indicates if the repository displays a Sponsor button for financial contributions.
5259152621
"""
@@ -52671,6 +52701,11 @@ interface RepositoryInfo {
5267152701
"""
5267252702
owner: RepositoryOwner!
5267352703

52704+
"""
52705+
The policy controlling who can create pull requests in this repository.
52706+
"""
52707+
pullRequestCreationPolicy: PullRequestCreationPolicy
52708+
5267452709
"""
5267552710
Identifies the date and time when the repository was last pushed to.
5267652711
"""
@@ -66684,6 +66719,11 @@ input UpdateRepositoryInput {
6668466719
"""
6668566720
hasProjectsEnabled: Boolean
6668666721

66722+
"""
66723+
Indicates if the repository should have the pull requests feature enabled.
66724+
"""
66725+
hasPullRequestsEnabled: Boolean
66726+
6668766727
"""
6668866728
Indicates if the repository displays a Sponsor button for financial contributions.
6668966729
"""
@@ -66704,6 +66744,11 @@ input UpdateRepositoryInput {
6670466744
"""
6670566745
name: String
6670666746

66747+
"""
66748+
The policy controlling who can create pull requests in this repository.
66749+
"""
66750+
pullRequestCreationPolicy: PullRequestCreationPolicy
66751+
6670766752
"""
6670866753
The ID of the repository to update.
6670966754
"""

0 commit comments

Comments
 (0)