Skip to content

GitHub code coverage merge protection for pull requests

PreviewVerifiedAdded Sep 22, 2026

You can now use branch rulesets to block pull requests from merging when test coverage drops below thresholds you set. You can set a minimum coverage percentage, a maximum allowed drop from the default branch, or both. You can start in evaluate mode to understand impact first, then switch to active mode when you’re ready to enforce merge protection.

Topics: Observability

GitHub's release notes

Summaries of vendors' own notes. Product names and logos belong to their owners; logos via logo.dev.

More GitHub Advanced Security releases

Every GitHub Advanced Security release

Also shipped on Jun 30, 2026

GitHub in June 2026

Weekly: the week's data and AI releases, Tuesday mornings.