# GitHub code coverage merge protection for pull requests

DevFeed: [GitHub code coverage merge protection for pull requests](<https://devfeed.tech/articles/github-code-coverage-merge-protection-for-pull-requests-71647.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2026-06-30-github-code-coverage-merge-protection-for-pull-requests>)

Author: Allison

Published: 2026-06-30T16:42:21Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [code-coverage](<https://devfeed.tech/tags/code-coverage.md>), [enterprise-cloud](<https://devfeed.tech/tags/enterprise-cloud.md>), [feature](<https://devfeed.tech/tags/feature.md>), [github](<https://devfeed.tech/tags/github.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [quality-gate](<https://devfeed.tech/tags/quality-gate.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

GitHub adds branch ruleset controls that can prevent pull requests from merging when test coverage falls below configured thresholds. Teams can set a minimum coverage level, limit drops relative to the default branch, and test the rules in evaluate mode before enforcing them. The feature is in public preview for GitHub Code Quality users on GitHub.com.

## Source excerpt

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...