Skip to content

Commit 0de3f95

Browse files
authored
GraphQL schema update
2 parents 9c3a7b1 + 970900d commit 0de3f95

9 files changed

Lines changed: 422 additions & 6 deletions

data/graphql/ghae/schema.docs-ghae.graphql

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,11 @@ type BranchProtectionRule implements Node {
16271627
"""
16281628
requiredStatusCheckContexts: [String]
16291629

1630+
"""
1631+
List of required status checks that must pass for commits to be accepted to matching branches.
1632+
"""
1633+
requiredStatusChecks: [RequiredStatusCheckDescription!]
1634+
16301635
"""
16311636
Are approving reviews required to update matching branches.
16321637
"""
@@ -5167,6 +5172,11 @@ input CreateBranchProtectionRuleInput {
51675172
"""
51685173
requiredStatusCheckContexts: [String!]
51695174

5175+
"""
5176+
The list of required status checks
5177+
"""
5178+
requiredStatusChecks: [RequiredStatusCheckInput!]
5179+
51705180
"""
51715181
Are approving reviews required to update matching branches.
51725182
"""
@@ -33376,6 +33386,36 @@ interface RequirableByPullRequest {
3337633386
): Boolean!
3337733387
}
3337833388

33389+
"""
33390+
Represents a required status check for a protected branch, but not any specific run of that check.
33391+
"""
33392+
type RequiredStatusCheckDescription {
33393+
"""
33394+
The App that must provide this status in order for it to be accepted.
33395+
"""
33396+
app: App
33397+
33398+
"""
33399+
The name of this status.
33400+
"""
33401+
context: String!
33402+
}
33403+
33404+
"""
33405+
Specifies the attributes for a new or updated required status check.
33406+
"""
33407+
input RequiredStatusCheckInput {
33408+
"""
33409+
The ID of the App that must set the status in order for it to be accepted.
33410+
"""
33411+
appId: ID
33412+
33413+
"""
33414+
Status check context that must pass for commits to be accepted to the matching branch.
33415+
"""
33416+
context: String!
33417+
}
33418+
3337933419
"""
3338033420
Autogenerated input type of RerequestCheckSuite
3338133421
"""
@@ -37979,6 +38019,11 @@ input UpdateBranchProtectionRuleInput {
3797938019
"""
3798038020
requiredStatusCheckContexts: [String!]
3798138021

38022+
"""
38023+
The list of required status checks
38024+
"""
38025+
requiredStatusChecks: [RequiredStatusCheckInput!]
38026+
3798238027
"""
3798338028
Are approving reviews required to update matching branches.
3798438029
"""

data/graphql/ghec/schema.docs.graphql

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,11 @@ type BranchProtectionRule implements Node {
17821782
"""
17831783
requiredStatusCheckContexts: [String]
17841784

1785+
"""
1786+
List of required status checks that must pass for commits to be accepted to matching branches.
1787+
"""
1788+
requiredStatusChecks: [RequiredStatusCheckDescription!]
1789+
17851790
"""
17861791
Are approving reviews required to update matching branches.
17871792
"""
@@ -5404,6 +5409,11 @@ input CreateBranchProtectionRuleInput {
54045409
"""
54055410
requiredStatusCheckContexts: [String!]
54065411

5412+
"""
5413+
The list of required status checks
5414+
"""
5415+
requiredStatusChecks: [RequiredStatusCheckInput!]
5416+
54075417
"""
54085418
Are approving reviews required to update matching branches.
54095419
"""
@@ -36962,6 +36972,36 @@ interface RequirableByPullRequest {
3696236972
): Boolean!
3696336973
}
3696436974

36975+
"""
36976+
Represents a required status check for a protected branch, but not any specific run of that check.
36977+
"""
36978+
type RequiredStatusCheckDescription {
36979+
"""
36980+
The App that must provide this status in order for it to be accepted.
36981+
"""
36982+
app: App
36983+
36984+
"""
36985+
The name of this status.
36986+
"""
36987+
context: String!
36988+
}
36989+
36990+
"""
36991+
Specifies the attributes for a new or updated required status check.
36992+
"""
36993+
input RequiredStatusCheckInput {
36994+
"""
36995+
The ID of the App that must set the status in order for it to be accepted.
36996+
"""
36997+
appId: ID
36998+
36999+
"""
37000+
Status check context that must pass for commits to be accepted to the matching branch.
37001+
"""
37002+
context: String!
37003+
}
37004+
3696537005
"""
3696637006
Autogenerated input type of RerequestCheckSuite
3696737007
"""
@@ -42994,6 +43034,11 @@ input UpdateBranchProtectionRuleInput {
4299443034
"""
4299543035
requiredStatusCheckContexts: [String!]
4299643036

43037+
"""
43038+
The list of required status checks
43039+
"""
43040+
requiredStatusChecks: [RequiredStatusCheckInput!]
43041+
4299743042
"""
4299843043
Are approving reviews required to update matching branches.
4299943044
"""

data/graphql/schema.docs.graphql

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,11 @@ type BranchProtectionRule implements Node {
17821782
"""
17831783
requiredStatusCheckContexts: [String]
17841784

1785+
"""
1786+
List of required status checks that must pass for commits to be accepted to matching branches.
1787+
"""
1788+
requiredStatusChecks: [RequiredStatusCheckDescription!]
1789+
17851790
"""
17861791
Are approving reviews required to update matching branches.
17871792
"""
@@ -5404,6 +5409,11 @@ input CreateBranchProtectionRuleInput {
54045409
"""
54055410
requiredStatusCheckContexts: [String!]
54065411

5412+
"""
5413+
The list of required status checks
5414+
"""
5415+
requiredStatusChecks: [RequiredStatusCheckInput!]
5416+
54075417
"""
54085418
Are approving reviews required to update matching branches.
54095419
"""
@@ -36962,6 +36972,36 @@ interface RequirableByPullRequest {
3696236972
): Boolean!
3696336973
}
3696436974

36975+
"""
36976+
Represents a required status check for a protected branch, but not any specific run of that check.
36977+
"""
36978+
type RequiredStatusCheckDescription {
36979+
"""
36980+
The App that must provide this status in order for it to be accepted.
36981+
"""
36982+
app: App
36983+
36984+
"""
36985+
The name of this status.
36986+
"""
36987+
context: String!
36988+
}
36989+
36990+
"""
36991+
Specifies the attributes for a new or updated required status check.
36992+
"""
36993+
input RequiredStatusCheckInput {
36994+
"""
36995+
The ID of the App that must set the status in order for it to be accepted.
36996+
"""
36997+
appId: ID
36998+
36999+
"""
37000+
Status check context that must pass for commits to be accepted to the matching branch.
37001+
"""
37002+
context: String!
37003+
}
37004+
3696537005
"""
3696637006
Autogenerated input type of RerequestCheckSuite
3696737007
"""
@@ -42994,6 +43034,11 @@ input UpdateBranchProtectionRuleInput {
4299443034
"""
4299543035
requiredStatusCheckContexts: [String!]
4299643036

43037+
"""
43038+
The list of required status checks
43039+
"""
43040+
requiredStatusChecks: [RequiredStatusCheckInput!]
43041+
4299743042
"""
4299843043
Are approving reviews required to update matching branches.
4299943044
"""

lib/graphql/static/changelog.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"Type `RequiredStatusCheckDescription` was added",
8+
"Type `RequiredStatusCheckInput` was added",
9+
"Field `requiredStatusChecks` was added to object type `BranchProtectionRule`",
10+
"Input field `requiredStatusChecks` was added to input object type `CreateBranchProtectionRuleInput`",
11+
"Input field `requiredStatusChecks` was added to input object type `UpdateBranchProtectionRuleInput`"
12+
]
13+
}
14+
],
15+
"previewChanges": [],
16+
"upcomingChanges": [],
17+
"date": "2021-11-18"
18+
},
219
{
320
"schemaChanges": [
421
{

lib/graphql/static/prerendered-input-objects.json

Lines changed: 24 additions & 3 deletions
Large diffs are not rendered by default.

lib/graphql/static/prerendered-objects.json

Lines changed: 24 additions & 3 deletions
Large diffs are not rendered by default.

lib/graphql/static/schema-dotcom.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8547,6 +8547,14 @@
85478547
"kind": "scalars",
85488548
"href": "/graphql/reference/scalars#string"
85498549
},
8550+
{
8551+
"name": "requiredStatusChecks",
8552+
"description": "<p>List of required status checks that must pass for commits to be accepted to matching branches.</p>",
8553+
"type": "[RequiredStatusCheckDescription!]",
8554+
"id": "requiredstatuscheckdescription",
8555+
"kind": "objects",
8556+
"href": "/graphql/reference/objects#requiredstatuscheckdescription"
8557+
},
85508558
{
85518559
"name": "requiresApprovingReviews",
85528560
"description": "<p>Are approving reviews required to update matching branches.</p>",
@@ -52093,6 +52101,31 @@
5209352101
}
5209452102
]
5209552103
},
52104+
{
52105+
"name": "RequiredStatusCheckDescription",
52106+
"kind": "objects",
52107+
"id": "requiredstatuscheckdescription",
52108+
"href": "/graphql/reference/objects#requiredstatuscheckdescription",
52109+
"description": "<p>Represents a required status check for a protected branch, but not any specific run of that check.</p>",
52110+
"fields": [
52111+
{
52112+
"name": "app",
52113+
"description": "<p>The App that must provide this status in order for it to be accepted.</p>",
52114+
"type": "App",
52115+
"id": "app",
52116+
"kind": "objects",
52117+
"href": "/graphql/reference/objects#app"
52118+
},
52119+
{
52120+
"name": "context",
52121+
"description": "<p>The name of this status.</p>",
52122+
"type": "String!",
52123+
"id": "string",
52124+
"kind": "scalars",
52125+
"href": "/graphql/reference/scalars#string"
52126+
}
52127+
]
52128+
},
5209652129
{
5209752130
"name": "RestrictedContribution",
5209852131
"kind": "objects",
@@ -73224,6 +73257,14 @@
7322473257
"kind": "scalars",
7322573258
"href": "/graphql/reference/scalars#string"
7322673259
},
73260+
{
73261+
"name": "requiredStatusChecks",
73262+
"description": "<p>The list of required status checks.</p>",
73263+
"type": "[RequiredStatusCheckInput!]",
73264+
"id": "requiredstatuscheckinput",
73265+
"kind": "input-objects",
73266+
"href": "/graphql/reference/input-objects#requiredstatuscheckinput"
73267+
},
7322773268
{
7322873269
"name": "requiresApprovingReviews",
7322973270
"description": "<p>Are approving reviews required to update matching branches.</p>",
@@ -77316,6 +77357,31 @@
7731677357
}
7731777358
]
7731877359
},
77360+
{
77361+
"name": "RequiredStatusCheckInput",
77362+
"kind": "inputObjects",
77363+
"id": "requiredstatuscheckinput",
77364+
"href": "/graphql/reference/input-objects#requiredstatuscheckinput",
77365+
"description": "<p>Specifies the attributes for a new or updated required status check.</p>",
77366+
"inputFields": [
77367+
{
77368+
"name": "appId",
77369+
"description": "<p>The ID of the App that must set the status in order for it to be accepted.</p>",
77370+
"type": "ID",
77371+
"id": "id",
77372+
"kind": "scalars",
77373+
"href": "/graphql/reference/scalars#id"
77374+
},
77375+
{
77376+
"name": "context",
77377+
"description": "<p>Status check context that must pass for commits to be accepted to the matching branch.</p>",
77378+
"type": "String!",
77379+
"id": "string",
77380+
"kind": "scalars",
77381+
"href": "/graphql/reference/scalars#string"
77382+
}
77383+
]
77384+
},
7731977385
{
7732077386
"name": "RerequestCheckSuiteInput",
7732177387
"kind": "inputObjects",
@@ -78429,6 +78495,14 @@
7842978495
"kind": "scalars",
7843078496
"href": "/graphql/reference/scalars#string"
7843178497
},
78498+
{
78499+
"name": "requiredStatusChecks",
78500+
"description": "<p>The list of required status checks.</p>",
78501+
"type": "[RequiredStatusCheckInput!]",
78502+
"id": "requiredstatuscheckinput",
78503+
"kind": "input-objects",
78504+
"href": "/graphql/reference/input-objects#requiredstatuscheckinput"
78505+
},
7843278506
{
7843378507
"name": "requiresApprovingReviews",
7843478508
"description": "<p>Are approving reviews required to update matching branches.</p>",

0 commit comments

Comments
 (0)