Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #17555
Closed
Open
Issue created Mar 21, 2017 by Winnie@winniehell💬Contributor

Support custom text for coverage badges

Description

It is possible to define multiple build jobs with test coverage and display coverage badges for each of them. Yet their badges all look the same and are therefore indistinguishable:

coverage.svg

Proposal

Support passing a custom text for the badge as parameter like this:

https://gitlab.com/gitlab-org/gitlab-ce/badges/master/coverage.svg?job=rake+karma&key_text=frontend+coverage

Since the width of the badge text is currently hardcoded, the easiest solution would probably be passing it as parameter as well:

https://gitlab.com/gitlab-org/gitlab-ce/badges/master/coverage.svg?job=rake+karma&key_text=frontend+coverage&key_width=123

Assignee
Assign to
Time tracking