moranaapps/JaCoCo Report to PR Comment

Add JaCoCo report to PR comment.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenGitHub token used to read PR data and create/update PR comments.yes
pathsNewline-separated paths or glob patterns to JaCoCo XML reports. Defaults to **/jacoco.xml.no**/jacoco.xml
exclude-pathsNewline-separated paths or globs to exclude from scanning.no
global-thresholdsGlobal thresholds in format overall*changed-files-average.no0*0
report-thresholds-defaultDefault thresholds applied at the report/group level when a group omits a threshold field. Format: overall*changed-files-average*per-changed-file (e.g. "75*60*0"). global-thresholds is a separate evaluation pass and is never in this fallback chain. no0*0*0
titleTitle used for the PR comment body and comment update matching.no
pr-numberPR number.no""
metricCoverage metric used for evaluation: instruction, line, branch, complexity, method, or class.noinstruction
comment-levelComment output level: none, minimal, full, changed, failed, or failed-or-changed.nofull
report-groupsDefine named report groups. When provided, paths can be omitted and groups define their own paths. YAML list; each entry: name (required), paths (required list of globs), thresholds (optional O*A*P string), baseline-paths (optional list). no""
skip-unchangedIf true, reports with no changed files are removed from comment rows.nofalse
evaluate-unchangedApplies only when skip-unchanged is true. If true, filtered unchanged reports are still checked for overall threshold failures (result only, no comment rows). If false, filtered unchanged reports are excluded from both comment rows and threshold evaluation. notrue
global-overall-scopeControls which reports contribute to the global overall coverage number when report-groups is configured. 'all' (default): scans the top-level paths and includes every discovered report in the global overall, even if it is not assigned to any group. Reports outside all groups are included in the global number but do not appear in any group row. 'groups-only': only reports matched by a group path pattern count toward global overall (previous behaviour before this input was introduced). noall
baseline-pathsPaths to JaCoCo baseline reports.no
update-commentIf true, update an existing action comment with the same title instead of creating a new one.notrue
pass-symbolSymbol to represent pass status.no
fail-symbolSymbol to represent fail status.no
fail-on-thresholdControls which threshold breaches fail the action. List input (comma- or newline-separated): overall, changed-files-average, per-changed-file, fail-unchanged. fail-unchanged applies when skip-unchanged is true and enforces overall checks for filtered reports. Leave empty to disable failing on threshold breaches. nooverall,changed-files-average,per-changed-file
debugEnable detail logging.nofalse
namedescription
coverage-overallOverall coverage percentage.
coverage-changed-filesCoverage percentage for changed files.
coverage-overall-passedOverall coverage pass status. (True/False)
coverage-changed-files-passedCoverage for changed files pass status. (True/False)
reports-coverageCoverage for each report.
groups-coverageCoverage for each report group.