Query
query GithubPullRequests($source: GitHubRequestSource!, $scope: GitHubPullRequestScope!) {
githubPullRequests(source: $source, scope: $scope) {
items {
provider
id
number
title
url
repositoryGithubId
}
truncated
hasNextPage
endCursor
}
}Variables
{
"source": "GITHUB_API",
"scope": "MINE"
}Response
{
"data": {
"githubPullRequests": {
"items": [
{
"provider": "GITHUB",
"id": "id",
"number": 1,
"title": "string",
"url": "string",
"repositoryGithubId": "id"
}
],
"truncated": true,
"hasNextPage": true,
"endCursor": "string"
}
}
}Queries
githubPullRequests
Returns a GitHub pull request page.
QUERY
githubPullRequests(source: GitHubRequestSource!, scope: GitHubPullRequestScope!, repositoryId: ID, state: GitHubPullRequestStateFilter, first: Int, after: String): GitHubPullRequestPage!Arguments
source
required
The source used to filter or perform the operation.
scope
required
The scope used to filter or perform the operation.
repositoryId
ID
Identifier of the repository. Omit it to leave this dimension unfiltered.
state
default:OPEN
The state used to filter or perform the operation. Defaults to OPEN.
first
Int
default:25
Maximum number of records to return. Defaults to 25.
after
String
Cursor or identifier after which to return records. Omit it to leave this dimension unfiltered.
Returns
items
Items associated with this GitHub pull request page.
truncated
Boolean!
Whether this GitHub pull request page is truncated.
hasNextPage
Boolean!
Whether this GitHub pull request page has next page.
endCursor
String
The end cursor associated with this GitHub pull request page. May be null when unavailable or not applicable.
Query
query GithubPullRequests($source: GitHubRequestSource!, $scope: GitHubPullRequestScope!) {
githubPullRequests(source: $source, scope: $scope) {
items {
provider
id
number
title
url
repositoryGithubId
}
truncated
hasNextPage
endCursor
}
}Variables
{
"source": "GITHUB_API",
"scope": "MINE"
}Response
{
"data": {
"githubPullRequests": {
"items": [
{
"provider": "GITHUB",
"id": "id",
"number": 1,
"title": "string",
"url": "string",
"repositoryGithubId": "id"
}
],
"truncated": true,
"hasNextPage": true,
"endCursor": "string"
}
}
}