GithubAPI:获取用户曾经承诺的存储库 [英] GithubAPI: Get repositories a user has ever committed in
问题描述
我想知道是否有可能获得给定用户曾经触及过的存储库列表。
在Github-API中,我只能看到:
$ b
-
GET / repos /:owner /:repo / contributors
-
GET / users /:user / repos $ c $
$GET / users /:user / events
首先只给出给定的:repo
存储库
的贡献者,仅给出:user
的回购
第三是有希望的,但事件被限制在300以下有什么方法可以获得用户曾经工作过的所有存储库与Github上没有倾销全部3百万回购? 您可以尝试使用github搜索api: https://developer.github.com/v3/search/#search-code
一个问题是你必须指定一个查询,例如,如果我用查询'def'查找我的名字,你会得到: https://api.github.com/search/code?q=def+user:manuelvanrijn
Within the scope of the research project ideally I need for any two users find the repositories that they have in their shared history of public development, i.e. they have committed in the same repos.
I wonder if it is possible to get the list of repositories that were ever been touched by a given user.
In Github-API I can see only:
GET /repos/:owner/:repo/contributors
GET /users/:user/repos
GET /users/:user/events
First gives only the contributors for a given :repo
repository
Second only gives a :user
's repos
Third was promising, but events are limited to 300
Is there any way to get all the repositories a user has ever worked with on Github without dumping all 3 millions repos?
You could try using the github search api: https://developer.github.com/v3/search/#search-code
one catch is that you have to specify a query, so for example if I lookup my name with the query 'def' you would get: https://api.github.com/search/code?q=def+user:manuelvanrijn
这篇关于GithubAPI:获取用户曾经承诺的存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!