Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/362.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Github API列表源存储库_Javascript_Github_Github Api - Fatal编程技术网

Javascript Github API列表源存储库

Javascript Github API列表源存储库,javascript,github,github-api,Javascript,Github,Github Api,有没有办法只列出源存储库? 我只能为用户获取整个存储库列表,其中包括任何分叉的存储库,它通常返回比我想要的要大得多的列表 这就是我正在使用的: https://api.github.com/users/alvarotrigo/repos?per_page=100 似乎没有提供任何筛选器参数来执行此操作?您需要使用传递此类参数(默认情况下,fork参数为false) 如果你想把叉子弄得这么好,你会这么做的 https://api.github.com/search/repositories?q

有没有办法只列出源存储库? 我只能为用户获取整个存储库列表,其中包括任何分叉的存储库,它通常返回比我想要的要大得多的列表

这就是我正在使用的:

 https://api.github.com/users/alvarotrigo/repos?per_page=100
似乎没有提供任何筛选器参数来执行此操作?

您需要使用传递此类参数(默认情况下,
fork
参数为false)

如果你想把叉子弄得这么好,你会这么做的

https://api.github.com/search/repositories?q=user:alvarotrigo+fork:true
https://api.github.com/search/repositories?q=user:alvarotrigo+fork:true