github-tools / github-tools/github

listBranches() does not return all branches in a repository

Abierto
#592 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
3.8k
Forks
809
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When using `listBranches()` on a repository with _over_ 30 branches, I only get 30 branches in the response. The response includes the page information:

```
link: '; rel="next", ; rel="last"',
```

However, I do not see a way to include options on the [listBranches()](http://github-tools.github.io/github/docs/3.2.3/Repository.html#listBranches) function. Is it currently possible to get back all the branches in the repository?

EDIT: This might be a duplicate of [this feature request](https://github.com/github-tools/github/issues/408).

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by inspecting the listBranches() entry point and the related feature request in issue #408. Check how the GitHub branches response exposes pagination and how other repository methods accept options. Done means callers can retrieve all branches or control pagination through a documented interface.

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
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.