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

Make Commit.files return PaginatedList #2939

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iarspider
Copy link

/commits/{ref} endpoint is paginated, meaning you can get up to 3000 files per commit:

Note: If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.

As suggested here.

@iarspider iarspider force-pushed the commit-files-paginated branch 3 times, most recently from 7974fbd to ba323d6 Compare April 5, 2024 11:12
@@ -97,15 +97,6 @@ def testBadAttributeInClassAttribute(self):
owner.avatar_url
self.assertEqual(raisedexp.exception.actual_value, 42)

def testBadTransformedAttributeInList(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think instead of removing this test case, we should find a different object that returns a list of a class and use that to test the bad transform case.

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