github-tools / github-tools/github
listBranches() does not return all branches in a repository
- 主要语言
- JavaScript
- 星标
- 3.8k
- 派生
- 809
- PR 合并指标
- 30 天内没有已合并 PR
描述
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).
贡献指南
这个仓库没有索引到贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100