Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show gitlab badges per branch in readme.md

Tags:

gitlab

badge

I am trying to show the build status of my branch on that branch's readme.md. https://mygitlab.com/<namespace>/<project>/badges/<branch>/coverage.svg I tried this but branch place holder isn't getting evaluated.

like image 263
lila Avatar asked Oct 17 '22 16:10

lila


1 Answers

You could create a README.md with the following for each branch

[![Coverage](https://gitlab.com/<namespace>/<project>/badges/<branch>/coverage.svg)](https://gitlab.com/<namespace>/<project>/)

for example:

Master Branch README.md

Coverage

Other Branch README.md

Coverage

like image 127
Ishan Avatar answered Oct 21 '22 05:10

Ishan