GitHub REST API:每次发布提交
GitHub REST API: Commits per release
我正在尝试在使用标签标识版本的存储库中获取特定版本中包含的提交。根据 this answer,这可以通过 git log
.
但是,我需要收集几个存储库的信息,所以使用 API 更方便。是否可以从 GitHub 的 REST API 中获取该信息?
您可以使用 compare two commits API:
GET /repos/:owner/:repo/compare/:base...:head
这与本地相同运行 git log base..head
。
考虑到您还想自动执行多个回购检查 List your Repositories API
如果您需要更多信息,请告诉我。
我正在尝试在使用标签标识版本的存储库中获取特定版本中包含的提交。根据 this answer,这可以通过 git log
.
但是,我需要收集几个存储库的信息,所以使用 API 更方便。是否可以从 GitHub 的 REST API 中获取该信息?
您可以使用 compare two commits API:
GET /repos/:owner/:repo/compare/:base...:head
这与本地相同运行 git log base..head
。
考虑到您还想自动执行多个回购检查 List your Repositories API
如果您需要更多信息,请告诉我。