Search code examples
githubcirclecibadge

How to get CircleCI status badge for particular branch


I have a CircleCI badge in my readme file, which is just retrieved via:

<img src="https://circleci.com/gh/ORESoftware/live-mutex.png?circle-token=8ee836581">

is there a way to retrieve the badge for just a certain branch? Is there a way to keep it updated? Sometimes it lags - probably because of http caching.


Solution

  • It was only a matter of putting ?branch=dev in the query params like so:

    <img src="https://circleci.com/gh/ORESoftware/live-mutex.png?branch=dev&circle-token=8ee836581">