Answer the question
In order to leave comments, you need to log in
How to get the number of issues and pull requests of multiple users in one repository using the Github GraphQL API?
To solve the problem, I use the following query (query)
search(query: "repo:repoName type:issue author:authorName", type: ISSUE) {
issueCount
}
type
to issue
and pr
you can get data for one user authorName
:query {
issues: search(query: "repo:repoName type:issue author:authorName", type: ISSUE) {
issueCount
}
pr: search(query: "repo:repoName type:pr author:authorName", type: ISSUE) {
issueCount
}
}
{
user1: {
issues: { issueCount: 123 },
pr: { issueCount: 123 }
},
user2: {
issues: { issueCount: 123 },
pr: { issueCount: 123 }
}
// ...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question