0
我想检索所有使用Git Statistics API从GitHub提交所有提交:检索Git的统计数据API
GET /repos/:owner/:repo/commits
我试图用curl https://api.github.com/repos/:owner/:repo/commits
,但它不显示我的所有承诺,但一些最新的。有没有办法检索整个提交列表?
我想检索所有使用Git Statistics API从GitHub提交所有提交:检索Git的统计数据API
GET /repos/:owner/:repo/commits
我试图用curl https://api.github.com/repos/:owner/:repo/commits
,但它不显示我的所有承诺,但一些最新的。有没有办法检索整个提交列表?
您需要关注“Traversing with Pagination”才能检索全部提交,因为这样的提交查询的结果最有可能分页。
详细描述在“Improved pagination for the Repository Commits API”(2014年5月)
这样可以避免通过http发送一个结果太大的回答。
https://developer.github.com/v3/#pagination –