-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Ability to specify per_page for PullRequest.Files? #2552
Comments
@Gamer025 👋🏻 Hi there! Just to confirm, are you referring to this method? If so, I can see that that REST API does support the Would you be open to creating a PR to add that? I think it would be better for Octokit.NET not to override the API's default |
Hello @timrogers |
That sounds like it will work to me! I'd welcome a PR. |
Thanks for taking the time to submit the PR, #2553! We'll get that reviewed. |
Is it somehow possible to specify the per_page parameter when calling PullRequest.Files?
By default Github only returns 30 files per page but could return up to 100.
This means when retrieving a list of modified files on a large PR a lot of unneeded API calls are being made.
Apparently other GetAll methods allow you to pass an ApiOptions parameter but it doesn't look like PullRequest.Files has an overload for that.
Alternatively would it be possible for PullRequest.Files to include per_page set to 100 by default?
I don't see any reason why one wouldn't want that method to use as little API calls as possible.
The text was updated successfully, but these errors were encountered: