Setting up an Github Commit RSS feed

陌路散爱 提交于 2019-12-17 15:04:52

问题


I am trying to have my github commits as an RSS feed but so far I have not managed to figure it out. I know that a private feed is available with the following syntax:

https://github.com/username.atom?token=token

But this the users activity feed. I would like a commit feed of one of my projects. Thanks in advance!

Perfect, thank you!! this was the final syntax:

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

Still cant view commits on all branches though.


回答1:


You want https://github.com/whatever/commits/master.atom, like for the Cloudera flume repository it's https://github.com/cloudera/flume/commits/master.atom.




回答2:


There is another alternative RssHub except the official atoms (first part).

GitHub provides some official RSS feeds officially:

Repo releases: https://github.com/:owner/:repo/releases.atom

Repo commits: https://github.com/:owner/:repo/commits.atom

User activities: https://github.com/:user.atom

Private feed: https://github.com/:user.private.atom?token=:secret (You can find Subscribe to your news feed in dashboard page after login)


RssHub:

Github repositories

Example: https://rsshub.app/github/repos/yanglr

Routing: /github/repos/:user

parameters:

  • User(required): username

Github Trending by Language

Example: https://rsshub.app/github/trending/daily/javascript

Routing: /github/trending/:since/:language?

parameter:

  • Since (required): Time span, available in the Trending page URL, optional daily monthly

  • Language (optional)

    Language, which can be found in the Trending page URL

Github Repository Issues

Example: https://rsshub.app/github/issue/DIYgod/RSSHub

Routing: /github/issue/:user/:repo

parameter:

  • User (required ): username

  • Repo (required ): repository name

Github Repository Pull Requests

Example: https://rsshub.app/github/pull/DIYgod/RSSHub

Routing: /github/pull/:user/:repo

parameter:

  • User (required): username

  • Repo (required): repository name

Github User

Example: https://rsshub.app/github/user/followers/yanglr

Routing: /github/user/followers/:user

parameter:

  • User (required): username

Github Repository Stars

Example: https://rsshub.app/github/stars/yanglr/CaliburnMicro-Calculator

Routing: /github/stars/:user/:repo

parameter:

  • User (required): username

  • Repo (required): repository name

Github Search results

Example: https://rsshub.app/github/search/RSSHub/bestmatch/desc

Routing: /github/search/:query/:sort?/:order?

parameter:

  • Query (required): search keyword

  • Sort (optional): Sorting options (default is bestmatch)

  • Order (optional): Sort order, desc and asc (default desc descending)

Besides, you can use Feed43 to create feed for any web page if unnecessary to login with account. Official tutorial, click here to view.



来源:https://stackoverflow.com/questions/7353538/setting-up-an-github-commit-rss-feed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!