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 –