Right now I can get my travis shield to either reflect the latest run, or a specific branch, irrespective of what branch I select in my github project page. I can do this by either leaving out or specifying the branch name at the end of the URL. Instead, I would like to get the shield corresponding to the selected branch. In other words, each time I select a different branch, the URL to the travis shield in my README.md
file would change.
In SVN you could use SVN keywords to implement something of the sort by modifying the shield URL with the branch name (or something like it). This QA provides some alternatives for git, but:
- I'd prefer to avoid relying on shell scripts
- I don't think keyword expansion will work because I need the files to be different on the Github side, not on my local computer (hopefully I'm just wrong about this)
Any ideas? Hopefully I'm just missing something silly. Feels like there has to be a really easy way of doing this.