github-tools / github-tools/github
pagination in listIssueComments
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.8k
- Forks
- 809
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I need to fetch all comments (>50) in an issue, but I don't know how to pass params like
```js
{
per_page: 100,
page: 2
}
```
to [`listIssueComments`](https://github.com/michael/github/blob/master/lib/Issue.js#L65).
I also find that there is a method called `_requestAllPages`, but only applied to [`listIssues`](https://github.com/michael/github/blob/master/lib/Issue.js#L43).
Is is better to add options params or use `_requestAllPages` in `listIssueComments`?
Thanks a lot.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reading lib/Issue.js at listIssues, listIssueComments, and _requestAllPages to understand the existing pagination entry points. Check how listIssueComments is called and documented, then define a consistent way for callers to retrieve more than one page of comments and verify that the behavior is clear from the public API.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- api
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 28/100