Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为用户获取一年的提交计数。我检查了 github-api v3 参考。但是,只能知道目录提交计数。我如何知道用户一年内提交所有曲目的次数?
您能否使用GET /repos/:owner/:repo/commits带有参数的调用since,until它用于YYYY-MM-DDTHH:MM:SSZ格式的开始日期和结束日期。此外,我们可以传递author参数以获取该特定作者完成的提交。
GET /repos/:owner/:repo/commits
since
until
YYYY-MM-DDTHH:MM:SSZ
author