rosslight/pr-code-coverage-visualizer
Take generated code coverage files and visualize uncovered lines in a PR comment
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | One or multiple coverage files. Can be multiple lines. Glob patterns are supported. | yes | — |
| update-comment | Whether to update an existing comment instead of creating a new one | no | true |
| show-changed-lines-only | If part of a PR, filter coverage data against changed lines | no | true |
| exclude-files | Glob patterns for files to exclude from coverage data. Can be multiple lines. If empty, no files are excluded. | no | "" |
| source | Fallback source directory for resolving file paths from coverage files | no | ${{ github.workspace }} |
| token | GitHub token for API access | yes | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| line-coverage | The overall line coverage percentage |
| branch-coverage | The overall branch coverage percentage |
| pr-line-coverage | The line coverage of the changes in this PR. Equal to the overall line coverage, if not executed on a PR |
| pr-branch-coverage | The branch coverage of the changes in this PR. Equal to the overall line coverage, if not executed on a PR |