Skip to content

Commit abe81c0

Browse files
authored
GraphQL schema update
2 parents be8aa2b + b606fdb commit abe81c0

File tree

6 files changed

+158
-2
lines changed

6 files changed

+158
-2
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23611,6 +23611,26 @@ enum PullRequestState {
2361123611
OPEN
2361223612
}
2361323613

23614+
"""
23615+
A repository pull request template.
23616+
"""
23617+
type PullRequestTemplate {
23618+
"""
23619+
The body of the template
23620+
"""
23621+
body: String
23622+
23623+
"""
23624+
The filename of the template
23625+
"""
23626+
filename: String
23627+
23628+
"""
23629+
The repository the template belongs to
23630+
"""
23631+
repository: Repository!
23632+
}
23633+
2361423634
"""
2361523635
The connection type for PullRequestTimelineItem.
2361623636
"""
@@ -28873,6 +28893,11 @@ type Repository implements Node & ProjectOwner & RepositoryInfo & Starrable & Su
2887328893
number: Int!
2887428894
): PullRequest
2887528895

28896+
"""
28897+
Returns a list of pull request templates associated to the repository
28898+
"""
28899+
pullRequestTemplates: [PullRequestTemplate!]
28900+
2887628901
"""
2887728902
A list of pull requests that have been opened in the repository.
2887828903
"""

data/graphql/schema.docs.graphql

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25365,6 +25365,26 @@ enum PullRequestState {
2536525365
OPEN
2536625366
}
2536725367

25368+
"""
25369+
A repository pull request template.
25370+
"""
25371+
type PullRequestTemplate {
25372+
"""
25373+
The body of the template
25374+
"""
25375+
body: String
25376+
25377+
"""
25378+
The filename of the template
25379+
"""
25380+
filename: String
25381+
25382+
"""
25383+
The repository the template belongs to
25384+
"""
25385+
repository: Repository!
25386+
}
25387+
2536825388
"""
2536925389
The connection type for PullRequestTimelineItem.
2537025390
"""
@@ -31042,6 +31062,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & RepositoryInfo &
3104231062
number: Int!
3104331063
): PullRequest
3104431064

31065+
"""
31066+
Returns a list of pull request templates associated to the repository
31067+
"""
31068+
pullRequestTemplates: [PullRequestTemplate!]
31069+
3104531070
"""
3104631071
A list of pull requests that have been opened in the repository.
3104731072
"""

lib/graphql/static/changelog.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"Type `PullRequestTemplate` was added",
8+
"Field `pullRequestTemplates` was added to object type `Repository`"
9+
]
10+
}
11+
],
12+
"previewChanges": [],
13+
"upcomingChanges": [],
14+
"date": "2021-05-04"
15+
},
216
{
317
"schemaChanges": [
418
{

lib/graphql/static/prerendered-objects.json

Lines changed: 12 additions & 2 deletions
Large diffs are not rendered by default.

lib/graphql/static/schema-dotcom.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37565,6 +37565,39 @@
3756537565
}
3756637566
]
3756737567
},
37568+
{
37569+
"name": "PullRequestTemplate",
37570+
"kind": "objects",
37571+
"id": "pullrequesttemplate",
37572+
"href": "/graphql/reference/objects#pullrequesttemplate",
37573+
"description": "<p>A repository pull request template.</p>",
37574+
"fields": [
37575+
{
37576+
"name": "body",
37577+
"description": "<p>The body of the template.</p>",
37578+
"type": "String",
37579+
"id": "string",
37580+
"kind": "scalars",
37581+
"href": "/graphql/reference/scalars#string"
37582+
},
37583+
{
37584+
"name": "filename",
37585+
"description": "<p>The filename of the template.</p>",
37586+
"type": "String",
37587+
"id": "string",
37588+
"kind": "scalars",
37589+
"href": "/graphql/reference/scalars#string"
37590+
},
37591+
{
37592+
"name": "repository",
37593+
"description": "<p>The repository the template belongs to.</p>",
37594+
"type": "Repository!",
37595+
"id": "repository",
37596+
"kind": "objects",
37597+
"href": "/graphql/reference/objects#repository"
37598+
}
37599+
]
37600+
},
3756837601
{
3756937602
"name": "PullRequestTimelineConnection",
3757037603
"kind": "objects",
@@ -44895,6 +44928,14 @@
4489544928
}
4489644929
]
4489744930
},
44931+
{
44932+
"name": "pullRequestTemplates",
44933+
"description": "<p>Returns a list of pull request templates associated to the repository.</p>",
44934+
"type": "[PullRequestTemplate!]",
44935+
"id": "pullrequesttemplate",
44936+
"kind": "objects",
44937+
"href": "/graphql/reference/objects#pullrequesttemplate"
44938+
},
4489844939
{
4489944940
"name": "pullRequests",
4490044941
"description": "<p>A list of pull requests that have been opened in the repository.</p>",

lib/graphql/static/schema-ghae.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34663,6 +34663,39 @@
3466334663
}
3466434664
]
3466534665
},
34666+
{
34667+
"name": "PullRequestTemplate",
34668+
"kind": "objects",
34669+
"id": "pullrequesttemplate",
34670+
"href": "/graphql/reference/objects#pullrequesttemplate",
34671+
"description": "<p>A repository pull request template.</p>",
34672+
"fields": [
34673+
{
34674+
"name": "body",
34675+
"description": "<p>The body of the template.</p>",
34676+
"type": "String",
34677+
"id": "string",
34678+
"kind": "scalars",
34679+
"href": "/graphql/reference/scalars#string"
34680+
},
34681+
{
34682+
"name": "filename",
34683+
"description": "<p>The filename of the template.</p>",
34684+
"type": "String",
34685+
"id": "string",
34686+
"kind": "scalars",
34687+
"href": "/graphql/reference/scalars#string"
34688+
},
34689+
{
34690+
"name": "repository",
34691+
"description": "<p>The repository the template belongs to.</p>",
34692+
"type": "Repository!",
34693+
"id": "repository",
34694+
"kind": "objects",
34695+
"href": "/graphql/reference/objects#repository"
34696+
}
34697+
]
34698+
},
3466634699
{
3466734700
"name": "PullRequestTimelineConnection",
3466834701
"kind": "objects",
@@ -41789,6 +41822,14 @@
4178941822
}
4179041823
]
4179141824
},
41825+
{
41826+
"name": "pullRequestTemplates",
41827+
"description": "<p>Returns a list of pull request templates associated to the repository.</p>",
41828+
"type": "[PullRequestTemplate!]",
41829+
"id": "pullrequesttemplate",
41830+
"kind": "objects",
41831+
"href": "/graphql/reference/objects#pullrequesttemplate"
41832+
},
4179241833
{
4179341834
"name": "pullRequests",
4179441835
"description": "<p>A list of pull requests that have been opened in the repository.</p>",

0 commit comments

Comments
 (0)