GithubAPI:获取用户曾经承诺的存储库 [英] GithubAPI: Get repositories a user has ever committed in

查看:95
本文介绍了GithubAPI:获取用户曾经承诺的存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在研究项目的范围内,理想情况下,我需要任何两个用户在他们共享的公共发展历史记录中找到他们拥有的存储库,即他们已经在同一个回购中承诺。

我想知道是否有可能获得给定用户曾经触及过的存储库列表。



在Github-API中,我只能看到:
$ b


  1. GET / repos /:owner /:repo / contributors

  2. GET / users /:user / repos $ 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:

  1. GET /repos/:owner/:repo/contributors
  2. GET /users/:user/repos
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆