How Strict Should Pull Request Review Be? Four Schools of Thought
Ask several experienced maintainers what it takes to merge a pull request into a published library and you will hear noticeably different answers. None of them is simply wrong; they reflect different packages, user bases and amounts of spare time. Below are four recognisable positions, described as schools of thought rather than attributed to anyone, followed by the points where they meet.
The gatekeeper school
Every merged line becomes something the maintainer supports indefinitely, so the bar is high. Changes need tests, documentation, a changelog entry and agreement on design before code is written. Public API additions are discussed in an issue first. Holders of this view point out that a package used as a dependency by many others multiplies every mistake, and that rejecting early is kinder than reverting later.
Trade-off: fewer contributions, and some contributors feel the hurdle is unwelcoming.
The mentor school
Here review is primarily teaching. Maintainers accept rougher first submissions and coach contributors towards the standard, sometimes pushing small fix-up commits themselves. The aim is to grow future co-maintainers, which is the only sustainable answer to a project's bus factor.
Trade-off: review takes longer per pull request, and the maintainer's time is the scarcest resource.
The automation-first school
Anything a machine can check, a machine should check, so human review focuses on design. CI runs the test matrix, type checks, linting, a bundle-size or API-surface diff, and licence scanning of new dependencies. A protected branch requires those checks to pass before a merge button appears.
# illustrative branch rules for a library's main branch
required checks: test (node 18, 20, 22), lint, types, api-diff
required approvals: 1
dismiss stale approvals on new commits: yes
Trade-off: setting it up is work, and green checks can create false confidence about behaviour nobody tested.
The merge-and-iterate school
Some maintainers of fast-moving or pre-1.0 packages merge promising changes quickly and refine on the main branch before release. The release, not the merge, is the quality gate. This keeps contributors motivated and avoids long-lived branches that rot.
Trade-off: it depends on discipline before tagging, and works poorly for widely depended-on stable packages.
Side by side
| School | Where quality is enforced | Best fit |
|---|---|---|
| Gatekeeper | Before merge, by humans | Stable, heavily depended-on libraries |
| Mentor | During review, collaboratively | Projects trying to grow maintainers |
| Automation-first | CI checks, then human design review | Libraries with broad runtime support |
| Merge-and-iterate | At release time | Early-stage or 0.x packages |
Where they agree
Every school wants changes to the public API treated more carefully than internal refactors, wants reviewers to explain the reason behind a request, and wants the standard written in CONTRIBUTING.md rather than held in someone's head. Most projects end up blending two or three of these. If you contribute rather than maintain, our first pull request guide shows how to meet whichever bar a project has set.
The next roundtable takes up a narrower fight about tracker hygiene, whether stale bots help or hurt, and the full set of publishing checklists starts from the AmericaModule home page.