Skip to content

[Self-hosted] Component parameter is broken for badges url #701

@nikosatwork

Description

@nikosatwork

Describe the bug
According to the documentation "You can create a badge relevant to a flag or a component by adding flag=<flag-name> or component=<component-name|component-id> after ...badge.svg?"

See Coverage Badges for Flags & Components

While this is true for flag, it is broken for component

Environment (please complete the following information):

  • Browser: All
  • System: Badges
  • Codecov version: 24.12.2, 25.3.3

To Reproduce
Steps to reproduce the behavior:

  1. Make sure you have a component implemented in codecov.yml
  2. Go to https://codecov.selfhosted.com/ghe/org/repo/graph/badge.svg?token=1234
  3. Observe that the badge shows some percentage
  4. Go to https://codecov.selfhosted.com/ghe/org/repo/graph/badge.svg?component=component01&token=1234
  5. Observe that the percentage in the badge is the same

Expected behavior
The percentage in the badge shows the percentage for the component specified

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions