farhan-ahmed1/HanCover Action

Generate comprehensive coverage reports for Pull Requests with intelligent change detection and dynamic badges. Features: • Multi-format support: Automatically detects LCOV, Cobertura, JaCoCo, and Clover coverage files • Smart PR comments: Single sticky comment that updates with each push - no spam • Change tracking: Compares PR coverage against main branch with visual delta indicators • Dynamic badges: Auto-updating coverage and change badges via GitHub Gists or file storage • Package organization: Intelligent grouping with customizable package structure • Security focused: Minimal permissions, input validation, and secure parsing • Security focused: Minimal permissions, input validation, and secure XML processing • Threshold validation: Configurable coverage requirements with clear pass/fail indicators Perfect for JavaScript/TypeScript (Jest, Vitest), .NET, Java (Maven), Python, PHP, and monorepo projects.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
filesCoverage file patterns (e.g., 'coverage/lcov.info', '**/cobertura.xml')yes
github-tokenGitHub token for PR comments and GitHub API access (defaults to GITHUB_TOKEN)no
gist-tokenGitHub token with 'gist' scope for baseline storageno
gist-idGitHub Gist ID for storing baseline coverage data (enables change badges)no
min-thresholdMinimum coverage threshold for health indicators (default: 50)no50
comment-mode'update' (sticky comment) or 'new' (always create new)noupdate
warn-onlyIf true, don't fail the action on coverage threshold violationsnofalse
baseline-filesBaseline coverage files for comparison (alternative to gist-id)no
groupsYAML configuration for custom package groupingno
thresholdsCoverage thresholds (e.g., 'total:80\ndiff:75')no
namedescription
coverage-pctOverall project coverage percentage
changes-coverage-pctCoverage percentage for code changes in this PR
coverage-deltaCoverage change compared to main branch (when gist-id provided)