Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.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
设置Github提交RSS源_Github_Rss_Feed_Github Api_Atom Feed - Fatal编程技术网

设置Github提交RSS源

设置Github提交RSS源,github,rss,feed,github-api,atom-feed,Github,Rss,Feed,Github Api,Atom Feed,我正试图将我的github提交为RSS提要,但到目前为止我还没有找到答案。我知道私有提要具有以下语法: https://github.com/username.atom?token=token 但这是用户的活动提要。我想要我的一个项目的提交提要 更新:这是最后的语法: https://github.com/username/repository_name/commits/branch_name.atom?login=login&token=token. 但仍然无法查看所有分支上的提

我正试图将我的github提交为RSS提要,但到目前为止我还没有找到答案。我知道私有提要具有以下语法:

https://github.com/username.atom?token=token
但这是用户的活动提要。我想要我的一个项目的提交提要

更新:这是最后的语法:

https://github.com/username/repository_name/commits/branch_name.atom?login=login&token=token. 

但仍然无法查看所有分支上的提交。

您需要
https://github.com/whatever/commits/master.atom
,就像它的
https://github.com/cloudera/flume/commits/master.atom

除了(第一部分)之外,还有另一种选择

GitHub正式提供了一些官方RSS源:

回购协议发布:

回购承诺:

用户活动:

私人饲料: (你可以找到 登录后在仪表板页面中订阅新闻源)


RssHub:

Github存储库 例如:

路由:
/github/repos/:user

参数:

  • 用户(必需):用户名
按语言划分的Github趋势 例如:

路由:
/github/trending/:自/:语言?

参数:

  • 自(必需):时间跨度,在URL中可用,可选每日/每月

  • 语言(可选)

    语言,可在URL中找到

Github存储库问题 例如:

路由:
/github/issue/:user/:repo

参数:

  • 用户(必需):用户名

  • Repo(必需):存储库名称

Github存储库拉取请求 例如:

路由:
/github/pull/:user/:repo

参数:

  • 用户(必需):用户名

  • Repo(必需):存储库名称

Github用户 例如:

路由:
/github/user/followers/:user

参数:

  • 用户(必需):用户名
Github存储库之星 例如:

路由:
/github/stars/:user/:repo

参数:

  • 用户(必需):用户名

  • Repo(必需):存储库名称

Github搜索结果 例如:

路由:
/github/search/:query/:sort?/:order?

参数:

  • 查询(必填):搜索关键字

  • 排序(可选):排序选项(默认为bestmatch)

  • 顺序(可选):排序顺序、desc和asc(默认desc降序)


此外,如果不需要使用帐户登录,您可以使用为任何网页创建提要。官方教程,点击查看。

我想它遵循相同的模式。将您的存储库名称替换为
任何内容
,并将
?token=token
放在末尾。试一试。你试过
master.atom
而不是
branch\u name.atom
?有没有办法获取项目的标记提要?某些项目使用标记来提供发布tarball。将这些内容作为RSS提要将非常有用。@TrinitronX-您可以用releases.atom替换commiss/master.atom以获得发布。因此,对于上面的示例,它应该是。您还可以获取特定文件历史的提要:
https://github.com/whatever/commits/master/path/to/file.atom