kshutkin/Coverage Badge

Discover coverage reports, generate self-contained SVG badges, and force-push them with the reports to an orphan branch.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
branchOrphan branch where badges and coverage reports are force-pushed.nocoverage
coverage-pathsComma- or newline-separated globs that match coverage folders to process.no**/coverage
ignoreComma- or newline-separated globs to exclude during discovery.no**/node_modules/**
metricWhich metric to display on the badge: lines, statements, branches, or functions.nobranches
labelLeft-side label text on the badge.nocoverage
thresholdsComma-separated upper-bound:color pairs sorted ascending. The first bucket whose upper bound is greater than the percentage wins.no50:red,60:orange,70:yellow,80:yellowgreen,90:green,100:brightgreen
precisionNumber of decimal places shown on the percentage.no0
styleBadge style. Only 'flat' is supported in v1.noflat
commit-messageCommit message used when pushing to the orphan branch.nochore: update coverage badges
commit-user-nameGit user.name used for the commit.nogithub-actions[bot]
commit-user-emailGit user.email used for the commit.no41898282+github-actions[bot]@users.noreply.github.com
tokenGitHub token with contents:write permission used to push the orphan branch.no${{ github.token }}
dry-runIf 'true', generate badges into a temp dir but skip the git push step.nofalse
namedescription
branchThe branch the badges were pushed to.
commit-shaSHA of the commit pushed to the orphan branch (empty when dry-run or nothing to commit).
badges-jsonJSON array of generated badges: [{path, metric, pct, color}].