【发布时间】:2015-11-16 20:39:01
【问题描述】:
有没有办法获取 git repo 的所有贡献者的提交历史记录,并添加、删除了行。
目前,statistics api 提供前 100 名贡献者的统计数据,但不是每个人。 https://developer.github.com/v3/repos/statistics/ (https://api.github.com/repos/saltstack/salt/stats/contributors
【问题讨论】:
有没有办法获取 git repo 的所有贡献者的提交历史记录,并添加、删除了行。
目前,statistics api 提供前 100 名贡献者的统计数据,但不是每个人。 https://developer.github.com/v3/repos/statistics/ (https://api.github.com/repos/saltstack/salt/stats/contributors
【问题讨论】:
仅通过 GitHub API 不会超过 100 个:请参阅“How can I get more than 100 results from GitHub API v3 using “github_api” gem?”。
结果上限为 100。
你需要先克隆 repo,然后 show the number of changed lines per author in git。
或使用gitinspector 之类的工具:
【讨论】: