allow pipelines on tags to update branch badges
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
Correct badges - for those using tags on master branch.
We only release to production from master branch - on tags.
Currently our badges point to master branch (since we cannot point to a tag - that is a semantic version). That means that our latest master status != what is in production - when we have merged anything into master after last tag.
It also means we have to run our tests on EVERY merge to master (ie. set stages to run on 'master') - where we normally have them set to only run on 'tags' on master.
Intended users
Everyone doing CI and using tags on master.
Proposal
I propose that an option be added, to update "branch badge" - whenever a pipeline is run on a tag. So badge updater will if option is set - simply see that this pipelin was run on tags - and then also identify branch this tag was on and update that badge as well.
Allow the API to accept additional parameter to fetch pipeline status from the latest tag in the repo, something like <URL>/badges/-/pipeline.svg?latest_tag=true