-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide fallback pagination when Link header unavailable (#23)
GitHub provides pagination through Link headers, including URLs to the next and previous pages, as described in [0]. There was an incident where GitHub didn't correctly return these headers for Release queries and so the pagination for this action was broken. 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. [0]: https://docs.github.com/en/rest/guides/traversing-with-pagination
- Loading branch information
Showing
3 changed files
with
180 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters