Set up a changed-line coverage check

Add a Coverage rule in the repository's Pre-merge checks to measure changed executable lines against a report for the tested commit.

Configure coverage#

Choose Coverage as the rule, then choose the Report source:

  • API upload uses reports your CI uploads for the tested commit. Uploads require a repository-restricted token with coverage:write.
  • GitHub Actions artifact reads an artifact from one workflow. Enter its stable Workflow ID from GitHub and the exact Artifact name. GitHub's web pages show a workflow's name and file but not its ID: gh api repos/OWNER/REPO/actions/workflows lists each workflow's id and path.

Set Minimum changed-line coverage and Wait for report. The minimum applies to executable lines changed by the pull request. Proofline reads your CI’s report; it does not run the tests.

Optionally set Maximum total coverage drop to compare total coverage with the merge base’s report. Leave it empty to skip that comparison. Enter exclusion globs, one per line, in Excluded paths (optional).

A missing, unreadable or unmappable report leaves coverage inconclusive. A total-drop comparison also needs a report for the merge base. The review’s Coverage section shows the reason and the tested commit when available.

Search help

Tab to a result. Enter to open. Escape to close.