-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Description
The API call on this line:
github-label-manager/js/app.js
Line 82 in 1a6a832
| url: 'https://api.github.com/repos/' + username + '/' + repo + '/labels', |
only gets the first page of labels. Per the API docs, you can use ?page=2 to get the second page etc.
Reproduction
You can see an example of this in some of my repos, e.g.:
- https://api.github.com/repos/agilgur5/react-signature-canvas/labels
- https://api.github.com/repos/agilgur5/react-signature-canvas/labels?page=2
Solutions
Per the docs, the link header can be parsed to get the next (or previous) page as well as the last page. Though a simpler method may be to just try a new page until the response is an empty array [], which would also indicate there are no more pages
nilsreichardt
Metadata
Metadata
Assignees
Labels
No labels