I want to query using GitHub Graphql api for project contributors, can anyone give me any hints how to make it? Just been trying for some time, and I guess that I am missing some small element.
I’d like to get sth like https://api.github.com/repos/facebook/react/contributors?page=15 but only for amount of conttributions
Greetings!
3
Answers
updated: May, 2020.
Github GraphQL API currently don’t support getting
contributors
of a repo.You can get the
collaborators
though….You need to have push rights to the repository to view the collaborators.
The Github graphql v4 API does not seem to support contributor nodes unless you have push access to a repo.
I get this error when i try to get a list of a repo’s collaborators
The closest match to get the equivalent of v3 REST API url
/repos/$USER/$REPO/contributors
i could find is:It seems to count all contributors in a repository that could be matched to Github users (most probable through their emails).