设置Github提交RSS源
我正试图将我的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. 但仍然无法查看所有分支上的提
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/trending/:自/:语言?
参数:
- 自(必需):时间跨度,在URL中可用,可选每日/每月
- 语言(可选) 语言,可在URL中找到
/github/issue/:user/:repo
参数:
- 用户(必需):用户名
- Repo(必需):存储库名称
/github/pull/:user/:repo
参数:
- 用户(必需):用户名
- Repo(必需):存储库名称
/github/user/followers/:user
参数:
- 用户(必需):用户名
/github/stars/:user/:repo
参数:
- 用户(必需):用户名
- Repo(必需):存储库名称
/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
。