Created
February 27, 2020 20:25
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.