github-tools / github-tools/github

listBranches() does not return all branches in a repository

オープン
#592 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。