Add more variables to badges
## Problem to solve With GitLab 10.7, project badges where introduced. These are great to quickly scan the status of a project. In our company, we have a monolithic repository with several actively supported branches. It would be awesome if we could have more variables for batches which resolve to the selected branch. That would enable us to show information for each branch separately within the GitLab interface. This would also allow us to have 1 link per badge in the README (because GitLab would resolve the variable to the correct branch). When using multiple active branches, each branch can have its statistics quickly scanned. ## Proposal Introduce more variables that we can use in badges. An example is `%{selected_branch}`. Being able to use standard GitLab CI/CD variables would be useful. ## Links / references - https://docs.gitlab.com/ee/user/project/badges.html - https://docs.gitlab.com/ee/ci/variables/predefined_variables.html ## Implementation guide TBD
issue