Skip to content

Instantly share code, notes, and snippets.

@mingliangguo
Created February 27, 2020 20:25
Show Gist options
  • Save mingliangguo/e608c14b0774b912ae92e07321e022a6 to your computer and use it in GitHub Desktop.
Save mingliangguo/e608c14b0774b912ae92e07321e022a6 to your computer and use it in GitHub Desktop.
Github GraphQL API to retrieve all reviewers of a user's PRs #graphql #github
query PRReviewers {
user(login:"john-doe") {
pullRequests(first: 100, states: CLOSED) {
totalCount
edges {
node {
... on PullRequest {
repository {
nameWithOwner
}
number
url
reviewRequests(first: 100) {
nodes {
requestedReviewer {
... on User {
name
login
}
}
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
@dharmraj-chauhan
Copy link

dharmraj-chauhan commented Jul 5, 2024

I guess its only returning the remaining approver's name and login.
Means, i want to see all the approver's name regardless of either they have been approved PR or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment