Github API - 由作者提交 [英] Github API - commits by author
问题描述
我想知道是否可以使用GitHub的API 1 来检索给定作者(针对特定存储库,分支)的提交列表。可以抓取最近提交到存储库和分支(例如mojombo的以JSON格式存储的主分支: http://github.com/api/v2/json/commits/list/mojombo/grit/master )但我想知道是否可以按作者过滤希望这只是我在文档中遗漏的东西,或者是可用的,但没有记录)。
那么,有没有人知道是否存在像 http://github.com/api/v2/ :format
/提交/ list / mojombo /砂砾/主/ :authorname
(这显然不起作用)。我也对自己生成这样的列表提供建议(通过 git
命令)。有任何想法吗?
[1] http:/ /develop.github.com/
2012年8月更新
按作者筛选提交已添加到 v3 API 。 经过近三年的时间,谢谢你来自Github的Wynn! I am wondering if it is at all possible to use GitHub's API1 to retrieve a list of commits by a given author (for a specific repository, branch). One can grab recent commits to a repository and branch (e.g. mojombo's grit repository's master branch in JSON format: http://github.com/api/v2/json/commits/list/mojombo/grit/master) but I would like to know if it is possible to filter this by author (hopefully it is just something I've missed in the documentation or is available but not documented). So, does anyone know if something exists like http://github.com/api/v2/ [1] http://develop.github.com/ Filtering the commits by author has been added to the v3 API. The After almost three years, thank you Wynn from Github! 这篇关于Github API - 由作者提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!作者
参数可用于列出库上的提交 a> action( GET / repos /:user /:repo / commitits
)。
:format
/commits/list/mojombo/grit/master/:authorname
(this obviously does not work). I am also open to suggestions about generating such a list myself (via the git
command). Any ideas? Update August 2012
author
parameter is available for the List commits on a repository action (GET /repos/:user/:repo/commits
).