This commit is contained in:
2026-07-03 00:38:05 +09:00
parent 87eacd39b2
commit 86cad348b4
149 changed files with 24450 additions and 105 deletions
@@ -0,0 +1,29 @@
---
source_url: "https://github.blog/changelog/2026-06-30-github-code-coverage-merge-protection-for-pull-requests/"
ingested: 2026-06-30
sha256: f8c59185ef1c13039240478afb5f7184b4b7e06f418fe1069b2ac223cae294e3
discovered_from:
platform: discord
channel_id: "1028287639918497822"
channel_name: "chat"
message_id: "1521584553565753536"
author_id: "890908900520505354"
posted_at: "2026-06-30T18:33:47.244000000Z"
message_excerpt: "Direct #chat link to GitHub code coverage merge protection changelog."
---
[Back to changelog](https://github.blog/changelog/)
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.
This gives your team a practical quality gate at merge time so you can reduce accidental regressions and keep testing standards consistent as code changes.
This feature is now in public preview for all GitHub Code Quality users on github.com. GitHub Code Quality is available today for GitHub Enterprise Cloud and Team, but isn’t yet available on GitHub Enterprise Server. It’s free during [the preview period](https://github.blog/changelog/2025-10-28-github-code-quality-in-public-preview/).
## Learn more
- Learn more about [Code coverage in our documentation](https://docs.github.com/code-security/how-tos/maintain-quality-code/set-up-code-coverage).
- Check out [our GitHub Code Quality documentation](https://docs.github.com/code-security/how-tos/maintain-quality-code/enable-code-quality?utm_source=changelog-docs-gh-code-quality&utm_medium=changelog&utm_campaign=universe25).
- Join the discussion and leave feedback on the [Code Coverage announcement in the GitHub Community](https://github.com/orgs/community/discussions/194833).