-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit on repos for an org? Or bug? #9
Comments
Hi Henrik, Or, also likely is that the current implementation doesn't handle pagination [2]. To be honest, I didn't think that this script would be used for organizations with hundreds of repos! In fact, getting organization's repos was added by another user in a relatively recent PR [3]. [1] https://developer.github.com/v3/repos/ |
Thank you, it seems that missing pagination support is causing it. |
I hit the pagination issue too. I have around 180 repos and I'm only seeing stats for the first 30. When requesting
And after requesting the 2nd page:
And after requesting the last page:
Seems the fix where repo == 'ALL' is to extract the Edit: You can increase the default 30 per page to 100 with Also, it seems the |
Thanks all for documenting this issue. I've pushed some changes that get all of the hundreds of repos owned by organizations like 'IBM', 'Google', etc. To get the actual traffic stats for those repos, the user running |
I tried reading stats for an org with many repos. The output stops after a chunk of repos. I haven't looked deeper into it. Is this a well-known limit, a bug in the traffic API or with the Python code?
The text was updated successfully, but these errors were encountered: