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 user's activity feed. I would like a commit feed of one of my projects.
Update: This was the final syntax:
https://github.com/username/repository_name/commits/branch_name.atom?login=login&token=token.
Still can't view commits on all branches though.
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
.
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.
精彩评论