---
title: "When does a repository review policy catch what CI misses? | Proofline"
description: "A review policy catches what checks cannot see: who understood a change, whether the gate itself was edited, and whether reviewed history is what ships."
url: https://proofline.sh/learn/repository-review-policy/
---

[Learning center](/learn/)

# When does a repository review policy catch what CI misses?

A review policy catches what checks cannot see: who understood a change, whether the gate itself was edited, and whether reviewed history is what ships. It fails quietly in the same places. A later CODEOWNERS line can take a path away from its team, and a skipped job can satisfy a required check. Read the policy as carefully as the code it guards.

Code review The Proofline team November 23, 2026 6 min read

## A pull request that passed every check

Take a fictional repository, `acme/shop`. Its default branch is protected by a rule that requires one approval, review from code owners and a passing `test-payments` check. Its CODEOWNERS file reads:

```
*              @acme/maintainers
/payments/     @acme/payments
*.ts           @acme/frontend
/.github/      @acme/platform
```

A pull request changes the refund calculation in `payments/refund.ts`. Its author also adds one line to `.github/workflows/ci.yml`, because the payment tests are slow:

```
jobs:
  test-payments:
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm test -- payments
```

Every check on the pull request is green. On a `pull_request` event, GitHub Actions runs the workflow "in the context of the merge commit", so the run uses the edited file. [Events that trigger workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target) The `if:` condition is false, the job is skipped, and GitHub counts `success`, `skipped` and `neutral` as successful states for a required check. [Troubleshooting required status checks](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks) No payment test ran, and nothing in CI says so.

The policy has two chances to notice, and they go differently.

The `/.github/` line works. GitHub requests review from the owners of every changed file, and with code owner review required, `@acme/platform` must approve the workflow edit before the pull request can merge. [About code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) A platform reviewer who reads a new `if:` on a required job sees what CI could not. The guide on [pull requests that edit their own workflow](/learn/pull-request-edits-its-own-workflow/) covers that boundary, and the one on [skipped jobs that satisfy a required check](/learn/skipped-job-satisfies-required-check/) covers the check itself.

The `/payments/` line fails. In CODEOWNERS, "the last matching pattern takes the most precedence". [About code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file) `payments/refund.ts` matches `/payments/` and then `*.ts`, so only `@acme/frontend` is requested. The payments team, the people who would know whether the new rounding matches the ledger, is never asked. Moving `/payments/` below `*.ts` fixes it; [why the last matching pattern wins](/learn/codeowners-last-matching-pattern-wins/) shows how to find such shadowed lines.

So one approval from the right owner caught what a green check hid, and one line in the wrong order removed the review that would have caught the business error. Neither shows up as a failure anywhere.

## Where a policy sees what checks cannot

Checks answer questions someone wrote down in advance. A review policy decides who must look, which checks must have run, and what may change without either. Three boundaries matter most.

Ownership puts a person with context on a change. A test can confirm that refunds round to two places; it cannot tell you the finance team agreed to round half-up. Code owners, [path-based required reviewers](/learn/ruleset-required-reviewers-by-path/) and [the number of approvals](/learn/how-many-required-approvals/) decide whether that person is asked and whether their answer is required.

The gate protects itself only if you say so. Workflows, CODEOWNERS and required check names live in the repository that they gate. A pull request can edit its own workflow, rename a job so that a requirement stops matching, or change [the file that names its own reviewers](/learn/codeowners-owner-of-the-codeowners-file/). Ownership of `.github/`, [an expected source for each required check](/learn/required-check-expected-source/) and [organization-required workflows](/learn/ruleset-required-workflows/) close those paths.

History and exceptions happen after review. A force push can replace reviewed commits, a moved tag can ship code that nobody approved under that version, and a bypass can merge without any of the above. [Blocking force pushes](/learn/block-force-pushes-and-deletions/), [protecting release tags](/learn/protect-release-tags/) and [keeping bypass lists narrow](/learn/ruleset-bypass-list/) decide what review still means after merge.

## Where policies fail quietly

| What you see | What actually happened | Guide |
| --- | --- | --- |
| The wrong team was requested | A later CODEOWNERS line matched the same path | [Last matching pattern wins](/learn/codeowners-last-matching-pattern-wins/) |
| The expected owner was never requested | A line was skipped for invalid syntax, or the owner lacks write access | [CODEOWNERS errors](/learn/codeowners-errors-before-requiring-review/) |
| A gitignore pattern owns nothing | `!`, `[ ]` and `\#` do not work in CODEOWNERS | [Syntax differences](/learn/codeowners-gitignore-syntax-differences/) |
| Owners were requested but approval was optional | Code owner review is not required by the branch rule | [Requested but not required](/learn/code-owner-review-requested-but-not-required/) |
| A required check passed with no tests run | The job was skipped by `if:` | [Skipped jobs](/learn/skipped-job-satisfies-required-check/) |
| A required check passed with failing steps | `continue-on-error` turned the failure into success | [continue-on-error](/learn/continue-on-error-required-check/) |
| A pull request waits forever for a check | The workflow's path filter never started it | [Waiting for status](/learn/required-check-waiting-for-status/) |
| Checks never run in the merge queue | The workflow lacks the `merge_group` event | [Merge queue checks](/learn/merge-queue-required-checks/) |
| An approval survived new commits | Stale approvals are not dismissed | [Stale approvals](/learn/dismiss-stale-approvals-on-new-commits/) |
| A workflow approved its own pull request | GitHub Actions is allowed to approve pull requests | [Actions approvals](/learn/github-actions-approving-pull-requests/) |

## Count the cost before you require it

Every rule also blocks some merges that needed no block: a code owner asked to approve a lockfile, a rebase forced by an unrelated merge, a conversation left open by a bot. Those false positives are the price of the rule, and they teach people to bypass it. Before you enforce a rule, count what it would have blocked and how many of those blocks changed anything, as the guide on [measuring a rule's false positives](/learn/measure-review-policy-false-positives/) shows. Then carve the exceptions on purpose: [an unowned path](/learn/codeowners-path-with-no-owner/), [generated files with the right owner](/learn/codeowners-generated-and-vendored-files/), or [a recorded emergency merge](/learn/emergency-merge-exception-record/) rather than a standing admin bypass.

## The collection

Code ownership:

-   [Why the last matching CODEOWNERS pattern wins](/learn/codeowners-last-matching-pattern-wins/)
-   [Leave a path without a code owner on purpose](/learn/codeowners-path-with-no-owner/)
-   [Check CODEOWNERS errors before requiring code owner review](/learn/codeowners-errors-before-requiring-review/)
-   [Which CODEOWNERS file governs a pull request](/learn/codeowners-file-from-base-branch/)
-   [Give the CODEOWNERS file its own owner](/learn/codeowners-owner-of-the-codeowners-file/)
-   [Gitignore patterns that do not work in CODEOWNERS](/learn/codeowners-gitignore-syntax-differences/)
-   [Choose a CODEOWNERS directory pattern](/learn/codeowners-directory-patterns/)
-   [When any one code owner can approve](/learn/codeowners-any-owner-approves/)
-   [Require reviewers by path with a ruleset](/learn/ruleset-required-reviewers-by-path/)
-   [Own generated and vendored files](/learn/codeowners-generated-and-vendored-files/)
-   [A change that requests a dozen code owners](/learn/codeowners-large-cross-cutting-change/)

Approvals and reviews:

-   [Dismiss stale approvals when the diff changes](/learn/dismiss-stale-approvals-on-new-commits/)
-   [Require approval of the most recent push](/learn/require-approval-of-most-recent-push/)
-   [How many approvals to require](/learn/how-many-required-approvals/)
-   [When the reviewer who requested changes is away](/learn/dismiss-changes-requested-review/)
-   [Require conversations to be resolved](/learn/require-conversation-resolution/)
-   [GitHub Actions approving pull requests](/learn/github-actions-approving-pull-requests/)
-   [Review policy for dependency update pull requests](/learn/dependency-bot-pull-request-review/)
-   [Auto-merge under required reviews](/learn/auto-merge-and-required-reviews/)
-   [The extra approval for Copilot pull requests](/learn/copilot-pull-requests-extra-approval/)
-   [Code owners requested but not required](/learn/code-owner-review-requested-but-not-required/)
-   [Approvals from reviewers without write access](/learn/approvals-from-reviewers-without-write-access/)

Required status checks:

-   [A required check waiting for status](/learn/required-check-waiting-for-status/)
-   [A skipped job satisfies a required check](/learn/skipped-job-satisfies-required-check/)
-   [Pin the source of a required check](/learn/required-check-expected-source/)
-   [Rename a job without breaking a required check](/learn/renamed-job-breaks-required-check/)
-   [Require branches to be up to date before merging](/learn/require-branches-up-to-date-before-merge/)
-   [Required checks in a merge queue](/learn/merge-queue-required-checks/)
-   [continue-on-error and required checks](/learn/continue-on-error-required-check/)
-   [Require a workflow across repositories](/learn/ruleset-required-workflows/)
-   [A pull request that edits its own workflow](/learn/pull-request-edits-its-own-workflow/)
-   [Required checks on fork pull requests](/learn/required-checks-on-fork-pull-requests/)
-   [Require a deployment before merging](/learn/require-deployments-before-merge/)

Rulesets, exceptions and cost:

-   [Rulesets and branch protection together](/learn/rulesets-and-branch-protection-together/)
-   [Keep a ruleset bypass list narrow](/learn/ruleset-bypass-list/)
-   [Should administrators bypass branch protection?](/learn/administrators-bypass-branch-protection/)
-   [Measure a rule's false positives before enforcing it](/learn/measure-review-policy-false-positives/)
-   [Protect release tags](/learn/protect-release-tags/)
-   [Block force pushes and branch deletion](/learn/block-force-pushes-and-deletions/)
-   [Require linear history](/learn/require-linear-history/)
-   [What required commit signatures establish](/learn/require-signed-commits/)
-   [Restrict file paths, extensions and sizes on push](/learn/push-ruleset-file-restrictions/)
-   [Secret scanning push protection bypasses](/learn/secret-scanning-push-protection-bypass/)
-   [Record an emergency merge as an exception](/learn/emergency-merge-exception-record/)

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

-   ### [Which CODEOWNERS line owns a file when several match?](/learn/codeowners-last-matching-pattern-wins/)
    
    Code review The Proofline team November 23, 2026 4 min read
    
-   ### [When a skipped job satisfies a required check](/learn/skipped-job-satisfies-required-check/)
    
    Code review The Proofline team November 23, 2026 5 min read
