GitHub API: Repositories Contributed To
github, github-api
Solution
With GraphQL API v4, you can now get these contributed repo using :
{
viewer {
repositoriesContributedTo(first: 100, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) {
totalCount
nodes {
nameWithOwner
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Try it in the explorer
If you have more than 100 contributed repo (including yours), you will have to go through pagination specifying `after: "END_CURSOR_VALUE"` in `repositoriesContributedTo` for the next request.
Problem
Is there a way to get access to the data in the “Repositories contributed to” module on GitHub profile pages via the GitHub API? Ideally the entire list, not just the top five, which are all you can get on the web apparently.