github-tools / github-tools/github
Cannot fetch all milestones
- Langage dominant
- JavaScript
- Étoiles
- 3.8k
- Forks
- 809
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I want to fetch all milestones even if the data span multiple pages.
However, currently it fetches only first 30 records.
Then I checked source code and found `listMilestones` method uses `this._request` method ([code](https://github.com/github-tools/github/blob/22b889cd48cd281812b020d85f8ea502af69ddfd/lib/Issue.js#L146))
while other listing methods like `listIssues` use `this._requestAllPages`.
Is this intended?
### Versions
- Node - 6.2.0
- github-api - 3.0.0
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start in lib/Issue.js at the listMilestones method referenced by the issue, then compare its request path with listIssues and the _requestAllPages method. Confirm how milestone pagination is handled and verify that fetching milestones returns records from every page rather than only the first 30.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 48/100