Endpoint: https://api.github.com/graphql Authentication: Bearer {token}
query ($number_of_repos: Int!) {
viewer {
name
repositories(last: $number_of_repos) {
nodes {
name
isPrivate
owner {
login
}
}
}
}
}
{
"number_of_repos": 3
}
{
search(query: "org:org is:pr created:{before}..{after}", type: ISSUE, first: 100, after: "{}") {
codeCount
issueCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
... on PullRequest {
repo: repository {
name
defaultBranchRef {
name
}
}
number
baseRefName
headRefName
title
author: author {
login
}
mergedBy: mergedBy {
login
}
commits: commits {
totalCount
}
comments: comments {
totalCount
}
additions
changedFiles
deletions
state
merged
createdAt
updatedAt
closedAt
mergedAt
}
}
}
}
}