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.
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">
Have you tried using the Status Badges page in your CircleCI project's notifications setting section?
You should be able to build a badge for your specific branch via the Branch
dropdown:
By default, the badge displays the status of your project’s default branch. If you want to show the status of a different branch, use the Branch dropdown menu to select it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With