Expand description
Generic paginated-fetch loop for a git-tags-shaped REST API returning per_page=100 pages.
Extracted from crate::github::paginate_tags so a second provider (GitLab CI’s
/repository/tags and /releases endpoints) can share the exact
concurrency/ordering/error-mapping behavior instead of forking it.
crate::github::paginate_tags is now a thin delegation to paginate_pages.
Functions§
- page_
has_ more - Returns
truewhen a fetched page came back full (per_page=100entries), meaning a subsequent page may exist and should be fetched too. A page with fewer entries is necessarily the last one. - paginate_
pages - Drives a paginated-fetch loop against a
per_page=100-shaped REST endpoint: page 1 alone, then subsequent pages in batches of up toCONCURRENCYpages. - warn_
if_ pagination_ truncated - Logs a warning when pagination for
namestops atmax_pageswhileproviderstill had more pages available (page_has_more(page_len)).