-
Notifications
You must be signed in to change notification settings - Fork 404
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
repo.compare_commits doesn't use pagination #1137
Comments
Would be happy to review a PR that fixed this |
Yep, got a solution working on my machine, but never submitted a PR to anyone else's project before! Give me a minute and I'll try. basically, changing comparison.py:
|
Just always do _iter. Inconsistent return types will bite users and confuse them. |
Fair enough, although by default github API returns 250 items with the original call, so trying to save some bandwidth |
based on feedback from sigmavirus24 in issue sigmavirus24#1137
Since 2021, github API supports pagination on Comparison results: https://github.blog/changelog/2021-03-22-compare-rest-api-now-supports-pagination/
but this package still gives a list of 250, not an iterator that would use pagination, meaning diffs are incomplete.
The text was updated successfully, but these errors were encountered: