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:
- Make sure you have a component implemented in codecov.yml
- Go to https://codecov.selfhosted.com/ghe/org/repo/graph/badge.svg?token=1234
- Observe that the badge shows some percentage
- Go to https://codecov.selfhosted.com/ghe/org/repo/graph/badge.svg?component=component01&token=1234
- Observe that the percentage in the badge is the same
Expected behavior
The percentage in the badge shows the percentage for the component specified
Describe the bug
According to the documentation "You can create a badge relevant to a flag or a component by adding
flag=<flag-name>orcomponent=<component-name|component-id>after...badge.svg?"See Coverage Badges for Flags & Components
While this is true for
flag, it is broken forcomponentEnvironment (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The percentage in the badge shows the percentage for the component specified