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

Try extra release pages without Link header #23

Merged
merged 2 commits into from Jan 24, 2021
Merged

Try extra release pages without Link header #23

merged 2 commits into from Jan 24, 2021

Conversation

jwlawson
Copy link
Owner

A change to the GitHub API recently removed the pagination Link header
from release json requests. This breaks the simple pagination handling
we use to find all possible releases.

Rather than relying on this to know if there are more pages to load, we
can just keep loading pages until they provide no additional versions to
parse.

Rather than relying on the Link headers to know if there are more pages
to load, we can just keep loading pages until they provide no additional
versions to parse. Using the Link headers is preferable, but this
provides an option to fall back on if the headers are not available.
@jwlawson jwlawson merged commit 419c4df into master Jan 24, 2021
@jwlawson jwlawson deleted the force_page branch January 24, 2021 22:36
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

1 participant