I am trying to get the commit activity for all the repositories from a user or organization using the GitHub API.
Currently the way I am solving the issue is:
- List all the repos for a giving user (https://developer.github.com/v3/repos/#list-user-repositories)
- For each repo, get the commit activity by calling the commit activity (https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data)
The problem I run into is that using this method, I quickly run to the request limit set by GitHub (5000 requests per hour) since I have 1000+ users or organizations to look up.
So I am wondering if there's any other way to do this other than using 5000/hr and moving on to the next batch after 1 hour.