-
Notifications
You must be signed in to change notification settings - Fork 2.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
Implement got pagination support #3163
Comments
@szmarczak do you have any suggestions for how to do this elegantly? I think I could probably do this with In that case I think I need to create a new got instance that then "calls" my existing one instead of merges with it. |
Of course you can! :) You're right, handlers should do the job. But pagination should be supported in Got natively. |
@szmarczak have you ever thought about the semantics for a pagination "API"? My approach:
|
Not yet. Let's continue the talk at sindresorhus/got#722 I'll sketch something out. |
What would you like Renovate to be able to do?
Support GitHub's pagination in a
got
wrapper.Describe the solution you'd like
I would like to add a
lib/util/got/github-pagination.js
instance that expands on the default instance and returns a paginatedres.body
ifopts.paginate
is set totrue
in the request.Describe alternatives you've considered
Writing pagination logic manually at the application layer every time.
Additional context
I started writing
lib/util/got/*
wrappers already.The text was updated successfully, but these errors were encountered: