---
title: "Can a custom AI code review rule block a merge? | Proofline"
description: "A review instruction can generate a comment. Blocking a merge also requires a result that the repository's merge policy enforces."
url: https://proofline.sh/learn/custom-review-rule-block-merge/
---

[Learning center](/learn/)

# Can a custom AI code review rule block a merge?

A review instruction can generate a comment. Blocking a merge also requires a result that the repository's merge policy enforces. Trace that connection before telling developers a rule is mandatory.

Code review The Proofline team November 19, 2026 1 min read

## Try the missing-evidence case

Suppose a repository requires a compatibility check for public API changes. CodeRabbit offers natural-language pre-merge checks that can report a pass, failure, or inconclusive result. In a trial pull request, remove a required field, then inspect the provider's check result and the merge decision. Repeat with the consumer contract unavailable.

Record what each outcome does at the protected branch. If the repository allows a merge with missing evidence, tighten the required status policy or add a deterministic contract check for that property. The wording of the instruction alone tells you nothing about the branch's behavior. [CodeRabbit’s custom pre-merge checks](https://docs.coderabbit.ai/pr-reviews/custom-checks)

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Can an AI code reviewer check a pull request against a linked issue?](/learn/review-against-issue/)
    
    Code review The Proofline team November 19, 2026 1 min read
    
-   ### [Why is my AI code reviewer ignoring custom instructions?](/learn/ignored-review-instructions/)
    
    Code review The Proofline team November 19, 2026 1 min read
