Skip to content

Commit

Permalink
GraphQL schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
Octomerger authored May 4, 2021
2 parents be8aa2b + b606fdb commit abe81c0
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 2 deletions.
25 changes: 25 additions & 0 deletions data/graphql/ghae/schema.docs-ghae.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -23611,6 +23611,26 @@ enum PullRequestState {
OPEN
}

"""
A repository pull request template.
"""
type PullRequestTemplate {
"""
The body of the template
"""
body: String

"""
The filename of the template
"""
filename: String

"""
The repository the template belongs to
"""
repository: Repository!
}

"""
The connection type for PullRequestTimelineItem.
"""
Expand Down Expand Up @@ -28873,6 +28893,11 @@ type Repository implements Node & ProjectOwner & RepositoryInfo & Starrable & Su
number: Int!
): PullRequest

"""
Returns a list of pull request templates associated to the repository
"""
pullRequestTemplates: [PullRequestTemplate!]

"""
A list of pull requests that have been opened in the repository.
"""
Expand Down
25 changes: 25 additions & 0 deletions data/graphql/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25365,6 +25365,26 @@ enum PullRequestState {
OPEN
}

"""
A repository pull request template.
"""
type PullRequestTemplate {
"""
The body of the template
"""
body: String

"""
The filename of the template
"""
filename: String

"""
The repository the template belongs to
"""
repository: Repository!
}

"""
The connection type for PullRequestTimelineItem.
"""
Expand Down Expand Up @@ -31042,6 +31062,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & RepositoryInfo &
number: Int!
): PullRequest

"""
Returns a list of pull request templates associated to the repository
"""
pullRequestTemplates: [PullRequestTemplate!]

"""
A list of pull requests that have been opened in the repository.
"""
Expand Down
14 changes: 14 additions & 0 deletions lib/graphql/static/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
[
{
"schemaChanges": [
{
"title": "The GraphQL schema includes these changes:",
"changes": [
"Type `PullRequestTemplate` was added",
"Field `pullRequestTemplates` was added to object type `Repository`"
]
}
],
"previewChanges": [],
"upcomingChanges": [],
"date": "2021-05-04"
},
{
"schemaChanges": [
{
Expand Down
14 changes: 12 additions & 2 deletions lib/graphql/static/prerendered-objects.json

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions lib/graphql/static/schema-dotcom.json
Original file line number Diff line number Diff line change
Expand Up @@ -37565,6 +37565,39 @@
}
]
},
{
"name": "PullRequestTemplate",
"kind": "objects",
"id": "pullrequesttemplate",
"href": "/graphql/reference/objects#pullrequesttemplate",
"description": "<p>A repository pull request template.</p>",
"fields": [
{
"name": "body",
"description": "<p>The body of the template.</p>",
"type": "String",
"id": "string",
"kind": "scalars",
"href": "/graphql/reference/scalars#string"
},
{
"name": "filename",
"description": "<p>The filename of the template.</p>",
"type": "String",
"id": "string",
"kind": "scalars",
"href": "/graphql/reference/scalars#string"
},
{
"name": "repository",
"description": "<p>The repository the template belongs to.</p>",
"type": "Repository!",
"id": "repository",
"kind": "objects",
"href": "/graphql/reference/objects#repository"
}
]
},
{
"name": "PullRequestTimelineConnection",
"kind": "objects",
Expand Down Expand Up @@ -44895,6 +44928,14 @@
}
]
},
{
"name": "pullRequestTemplates",
"description": "<p>Returns a list of pull request templates associated to the repository.</p>",
"type": "[PullRequestTemplate!]",
"id": "pullrequesttemplate",
"kind": "objects",
"href": "/graphql/reference/objects#pullrequesttemplate"
},
{
"name": "pullRequests",
"description": "<p>A list of pull requests that have been opened in the repository.</p>",
Expand Down
41 changes: 41 additions & 0 deletions lib/graphql/static/schema-ghae.json
Original file line number Diff line number Diff line change
Expand Up @@ -34663,6 +34663,39 @@
}
]
},
{
"name": "PullRequestTemplate",
"kind": "objects",
"id": "pullrequesttemplate",
"href": "/graphql/reference/objects#pullrequesttemplate",
"description": "<p>A repository pull request template.</p>",
"fields": [
{
"name": "body",
"description": "<p>The body of the template.</p>",
"type": "String",
"id": "string",
"kind": "scalars",
"href": "/graphql/reference/scalars#string"
},
{
"name": "filename",
"description": "<p>The filename of the template.</p>",
"type": "String",
"id": "string",
"kind": "scalars",
"href": "/graphql/reference/scalars#string"
},
{
"name": "repository",
"description": "<p>The repository the template belongs to.</p>",
"type": "Repository!",
"id": "repository",
"kind": "objects",
"href": "/graphql/reference/objects#repository"
}
]
},
{
"name": "PullRequestTimelineConnection",
"kind": "objects",
Expand Down Expand Up @@ -41789,6 +41822,14 @@
}
]
},
{
"name": "pullRequestTemplates",
"description": "<p>Returns a list of pull request templates associated to the repository.</p>",
"type": "[PullRequestTemplate!]",
"id": "pullrequesttemplate",
"kind": "objects",
"href": "/graphql/reference/objects#pullrequesttemplate"
},
{
"name": "pullRequests",
"description": "<p>A list of pull requests that have been opened in the repository.</p>",
Expand Down

0 comments on commit abe81c0

Please sign in to comment.