我希望通过使用Github API来实现类似于git log --stat
的功能。
我想获取存储库中发生的所有提交以及在该特定提交中更改的文件。
请问我应该如何在Github API中实现此功能?
我希望通过使用Github API来实现类似于git log --stat
的功能。
我想获取存储库中发生的所有提交以及在该特定提交中更改的文件。
请问我应该如何在Github API中实现此功能?
首先从https://api.github.com/repos/:owner/:project/commits
获取提交记录。
curl -i https://api.github.com/repos/masnun/torrent-tweeter/commits
然后您可以使用提交API获取更改的文件。 https://developer.github.com/v3/repos/commits/#get-a-single-commit