Convenience wrapper for Bitbucket-style paginated APIs. Auto-iterates using isLastPage and nextPageStart from the response.
isLastPage
nextPageStart
const commits = await pagedFetch({ fetcher: (params) => api.project('my-project').repo('my-repo').commits(params), limit: 100,}); Copy
const commits = await pagedFetch({ fetcher: (params) => api.project('my-project').repo('my-repo').commits(params), limit: 100,});
Convenience wrapper for Bitbucket-style paginated APIs. Auto-iterates using
isLastPageandnextPageStartfrom the response.