Skip to content

Get repos: allow recursive api call when repos > 50 (paginated limit)#1

Open
Dpblandin wants to merge 1 commit intonikaia:masterfrom
Dpblandin:feature/paginated-repos
Open

Get repos: allow recursive api call when repos > 50 (paginated limit)#1
Dpblandin wants to merge 1 commit intonikaia:masterfrom
Dpblandin:feature/paginated-repos

Conversation

@Dpblandin
Copy link
Copy Markdown

In lib/api.js
The getRepositories() method only returns 50 repositories max because according to deploybot API doc:
https://deploybot.com/api/repositories#list-repositories

There is a default and max limit of 50 repos per request.

This PR allows for recursively calling the meta/next_uri if provided, thus fetching all subsequent repositories

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.

1 participant