Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codecov branch badge not showing correct percentage #10970

Closed
DjordyKoert opened this issue Mar 26, 2025 · 2 comments · Fixed by #10971
Closed

Codecov branch badge not showing correct percentage #10970

DjordyKoert opened this issue Mar 26, 2025 · 2 comments · Fixed by #10971
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas

Comments

@DjordyKoert
Copy link
Contributor

Are you experiencing an issue with...

shields.io

🐞 Description

The codecov badge is displaying an incorrect percentage when mentioning a specific branch.

https://codecov.io/gh/nelmio/NelmioApiDocBundle/branch/5.x/graph/badge.svg

You can see that the percentage should be on 96% for the 5.x branch.

This can also be seen in the project README file: https://github.com/nelmio/NelmioApiDocBundle/blob/5.x/README.md

🔗 Link to the badge

https://img.shields.io/codecov/c/github/nelmio/NelmioApiDocBundle?branch=5.x&style=flat-square

💡 Possible Solution

branch ? `/branches/${branch}` : ''

Rename branches to branch

https://community.codecov.com/t/difference-between-branch-and-branches-for-badges/3923/2

@DjordyKoert DjordyKoert added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Mar 26, 2025
Copy link
Contributor

Badge tested using npm run badge https://img.shields.io/codecov/c/github/nelmio/NelmioApiDocBundle?branch=5.x&style=flat-square
Output is available here

@DjordyKoert
Copy link
Contributor Author

This was once fixed in #8565, but the changes seem to no longer be on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant