Skip to content
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

Fix issue #1137 #1139

Merged
merged 10 commits into from
Apr 17, 2023
Merged

Conversation

amaccormack-lumira
Copy link
Contributor

As per #1137, github now allows pagination to get a full issue list out of the compare endpoint, so enabled pagination/iterator on the commits within the Comparison class.

Test added next to the existing test_compare_commits to check for an example with >250 commits change (250 was the previous maximum the api would return)

pre-commit-ci bot and others added 3 commits April 13, 2023 14:18
- line length and spacing
…#1137

# Conflicts:
#	tests/integration/test_repos_repo.py
src/github3/repos/comparison.py Outdated Show resolved Hide resolved
Copy link
Owner

@sigmavirus24 sigmavirus24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 suggestions, otherwise this looks fantastic

src/github3/repos/comparison.py Show resolved Hide resolved
src/github3/repos/comparison.py Outdated Show resolved Hide resolved
amaccormack-lumira and others added 3 commits April 17, 2023 08:50
Accepting sigmavirus suggestion

Co-authored-by: Ian Stapleton Cordasco <graffatcolmingov@gmail.com>
Accepting sigmavirus suggestion

Co-authored-by: Ian Stapleton Cordasco <graffatcolmingov@gmail.com>
@sigmavirus24 sigmavirus24 merged commit 134b68c into sigmavirus24:main Apr 17, 2023
11 checks passed
@sigmavirus24
Copy link
Owner

Thank you @amaccormack-lumira !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants