magmamoose/Brimyr

Patch-coverage gate: run tests with coverage and gate on the coverage of the lines a PR changed.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
checkoutRun actions/checkout first. Patch coverage needs full history (fetch-depth 0).notrue
fetch_depthCheckout fetch-depth. MUST be 0 for patch coverage (merge-base).no0
modeauto | pr (patch-coverage gate) | baseline (trend only, no gate).noauto
thresholdPatch-coverage threshold (%) that blocks below it.no80
base_refOverride the base ref/SHA (default: PR base SHA from the event).no""
head_refOverride the head ref/SHA (default: PR head SHA, else github.sha).no""
strip_prefixComma-separated path prefixes to strip from coverage paths before matching.no""
ecosystemForce ecosystem(s): comma-separated python|javascript|dotnet (default: auto-detect).no""
test_commandOverride the detected test command (a shell command string).no""
coverage_fileEscape hatch: ingest pre-made coverage file(s) "path[:format]", comma-separated, instead of running tests.no""
sonar_urlSonarQube host URL. Set to run a non-blocking sonar-scanner pass.no""
sonar_tokenSonarQube token (pass a secret). Used only if sonar_url is set.no""
sonar_project_keySonar project key.no""
sonar_organizationSonar organization (SonarCloud).no""
emit_json_artifactUpload the patch-coverage JSON summary as a build artifact.notrue
json_artifact_nameArtifact name for the patch-coverage JSON summary.nobrimyr-coverage
python_versionPython version used to run the brimyr CLI.no3.12
namedescription
modeResolved run mode (pr | baseline).
gate_resultpass | fail | error.
patch_coveragePatch coverage percentage (covered changed executable lines / total).
covered_linesCovered changed executable lines.
total_linesTotal changed executable lines (the patch-coverage denominator).