4 min read

We approved 97% of our pull requests. Here’s what the reviews actually caught

Everyone on my team agrees code review matters. A colleague asked what our reviews are for. Nobody had data. So I went and got some.

I took all 2,530 pull requests merged in our main repository over three months. I grabbed every comment a person left on them. An agent sorted those comments. It went through the candidates for important catches, checking each reply and looking for a fixing commit. Then I read what came out.

Approval is universal, attention isn’t

That doesn’t mean the team doesn’t care. Approval just became a step in the process.

What the comments were about

Of 2,202 human review comments:

About 15 to 20% looked like bug reports at first. Checked by hand, only about half were real defects.

The catches that mattered

Some comments clearly prevented damage. One stopped a data-loss bug in an ingest path. Another blocked a change that would have deleted a live Kubernetes ingress. Others caught a cross-organization permission grant, a renumbered protocol field that would have broken compatibility and a config that would have crash-looped a service. Every one had a comment, a reply and a fixing commit.

In total there were 20 such comments on 17 pull requests. That’s 0.7% of approved pull requests.

They weren’t spread evenly. They clustered in permissions and identity, infrastructure services and backend business logic. Frontend code had zero across 138 approved pull requests. CI, tooling and Terraform had one across 728.

Two more findings surprised me:

Reverts told me nothing useful. Of 36 pull requests that later needed a revert or a fix, a third had a substantive human review. That’s about the same rate as everything else.

Review didn’t catch much, but what it caught was predictable.

What I changed

Only 0.7% of reviews prevent real damage. You can predict where they happen. Put reviewer attention there instead of spreading it everywhere else.

A grid of twelve mostly grey tiles with two solid black ones that a person points at, labelled 0.7% of reviews and permissions.

I’d already started an experiment. My pull requests carry a “self-reviewed” label. A small automated routine approves labelled pull requests from a short list of authors. It follows rules each reviewer writes in its description, like “not if it touches backend code”. A 51-pull-request stack had been crawling through review for a week. It merged in one evening.

Three things kept it honest:

The broader conversation on my team has moved from “who may skip review” to “which changes carry risk”. That’s the better question. Frontend copy and a permission check shouldn’t get the same process.

If you want to run this on your own repo

A solid comment bubble linked by a dashed line to a commit on a branch, labelled fixing commit.

Code review is also how a team learns each other’s code and agrees on direction. Plenty of review threads are alignment meetings in disguise. That’s worth keeping, though it’s a different job from catching bugs. It deserves to be done on purpose, not as a side effect of a required approval.