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

Automatically handle pagination #49

Open
ahal opened this issue Sep 18, 2024 · 0 comments
Open

Automatically handle pagination #49

ahal opened this issue Sep 18, 2024 · 0 comments

Comments

@ahal
Copy link
Contributor

ahal commented Sep 18, 2024

Many Github APIs are paginated, there is documentation on how to handle that here:
https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api?apiVersion=2022-11-28#using-link-headers

We should handle this implicitly, perhaps turning the requests method into a generator with each iteration returning a new response object. This way callers can decided whether to fetch the next page or not

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

No branches or pull requests

1 participant