I want to show the commit activity on my repo hosted at GitHub using the RSS feeds. I am using the URL:
https://github.com/RiverDonkey/Drupal-Mailcheck/commits.atom
but the issue is this will result in commits only from the base branch (in this case master).
I want to fetch not only commits from master, but from all my branches. Is this possible?
You will need the RSS feeds for each of the branches you want to show commit activity on and merge them.
The RSS feed for your current default branch is as follows:
For each of your other branches (including “master” if that’s not your default branch view) they will follow the URL format of:
You can work out what branches exist in an repo by hitting the API with the following:
The JSON response will list all the branches and the last commit made to each branch.
Do what you need to do to collect them all and poke them through a single filtered view.