Github API-作者提交

标签 github

我想知道是否可以使用GitHub的API1检索给定作者(对于特定存储库,分支)的提交列表。可以捕获最近提交到存储库和分支的提交(例如,mojombo的grit存储库的JSON格式的master分支:http://github.com/api/v2/json/commits/list/mojombo/grit/master),但是我想知道是否可以按作者过滤(希望这只是我在文档或可用,但未记录)。

因此,有谁知道是否存在http://github.com/api/v2/ :format/commits/list/mojombo/grit/master/:authorname之类的东西(这显然行不通)。我也乐于接受有关自己生成此类列表的建议(通过git命令)。有任何想法吗?

[1] http://develop.github.com/

最佳答案

2012年8月更新

按作者筛选提交内容已添加到v3 API中。 author参数可用于List commits on a repository操作(GET /repos/:user/:repo/commits)。

将近三年后,谢谢来自Github的Wynn!

关于Github API-作者提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1688004/

相关文章:

GitHub 删除旧版本 - 最佳实践?

GitHub API 创建文件返回 404

git - 有没有办法在 github 中创建内部 pull 请求?

c# - 如何从 github 运行 ASP.NET web api

Github API - 创建分支?

git - 推送前清除 Git 提交

git - Android Studio 3.3.1项目集成GitHub时哪种方式正确?

windows - Windows 上存储的 github 身份验证 token 在哪里?

使用 SSH 的 Git 提交请求电子邮件

html - 文件无法编辑 Github 页面