GitHub API 分支数

GitHub API Branch Count

我需要检索指定存储库中有多少个分支。如果我调用这个

GET /repos/:owner/:repo/branches

我得到了前 30 个,但我想要全部

我如何告诉 API 到 return 一切?或者至少指定一个与 30

不同的计数

答案为及格

?per_page=100&page=1

在URL。一次最多100条记录。

https://developer.github.com/v3/#pagination