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. The branches can be configured using 4 variables;
%{project_path}
%{project_id}
%{default_branch}
%{commit_sha}
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).
Further details
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}
.
What does success look like, and how can we measure that?
The badges where introduced in #41174 (closed).