Description
The API call on this line:
|
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.:
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
Description
The API call on this line:
github-label-manager/js/app.js
Line 82 in 1a6a832
only gets the first page of labels. Per the API docs, you can use
?page=2to get the second page etc.Reproduction
You can see an example of this in some of my repos, e.g.:
Solutions
Per the docs, the
linkheader 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