Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 34,867
    • Issues 34,867
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,211
    • Merge Requests 1,211
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #17555

Closed
Open
Opened Mar 21, 2017 by 🕺 Winnie 🕺@winniehellContributor

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
13.1
Milestone
13.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab#17555