有没有办法使用GitHub API或任何外部服务获取GitHub组织中的所有贡献者?
我正在尝试使用GitHub API获取angular组织中的所有贡献者。
我只找到了一种解决方案:
我正在尝试使用GitHub API获取angular组织中的所有贡献者。
我只找到了一种解决方案:
Get all repos from
angular
organisation using this request:GET https://api.github.com/orgs/angular/repos
For each repo, get all its contributors by this request:
GET https://api.github.com/repos/angular/:repo/contributors
- Merge all derived data to one array.
这种方法看起来是可以工作的,但我认为它非常繁琐。我用这种方式发送了大约300个请求,它们需要处理大约20秒(应用程序在所有请求完成之前将被冻结)。
问题:
- 有没有其他替代方案?
- Github注册应用程序处理如此多的请求是否可行?我提到,每次应用程序启动时都会发送这300个请求。