Workflow status badge per branch #25563
-
According to https://help.github.com/en/articles/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository it is possible to add a status badge for a workflow. Currently the documentation does not mention whether it is possible to reference a branch name. This is important (and useful) for projects that have long-living branches in addition to the default branch. For example, sebastianbergmann/phpunit has multiple long-living branches - master - 8.3 - 7.5 As of the moment, when using Travis CI (see https://travis-ci.org), we can specify the name of the branch branch build status badges:
It would be great if we could do the same with GitHub Action status badges, for example:
Is that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Badges by branch currently aren’t available. They currently check the status on your default branch (usually master). Definitely agree it’s important. It’s on our list to get this added. ✨ |
Beta Was this translation helpful? Give feedback.
-
is this also why PR status badges don’t work? I’ve got a push badge and a PR badge and only the push one seems to be working. |
Beta Was this translation helpful? Give feedback.
-
Yes - this is correct. |
Beta Was this translation helpful? Give feedback.
-
Are there any news about badges by branch? |
Beta Was this translation helpful? Give feedback.
-
According to the documentation it should now be possible to add a “branch” query parameter to the URL to get a branch specific badge, so you’ll get something like:
|
Beta Was this translation helpful? Give feedback.
According to the documentation it should now be possible to add a “branch” query parameter to the URL to get a branch specific badge, so you’ll get something like: