What Will This Pull Request Break?
Updated
Picture a pull request that renames one field in a shared settings file. Eleven lines, clean diff, approved in minutes. A background job that nobody remembers still reads the field by its old name.
The job fails quietly for a week. It was not in the diff, so it was not in the review.
A diff shows what changed. It does not show what depends on it. Reviewers catch mistakes in the lines they can see and rarely think about the files that are not in the diff. The steps below check what else a change touches before you approve it.
Find what depends on the changed code
For each changed file, search for every place that imports or calls it. Then do the same for those files, because indirect dependents break too. The longer the chain, the more careful the review.
- Search for the file's name and the names it exports.
- For shared modules, follow the chain at least two levels out.
- Note anything that loads code at runtime. A plain search will miss it.
Find the tests that reach it
Find which tests run the changed file, directly or through its dependents. If none do, the change is unprotected however green the build looks. Ask for a test, or write down why not.
Check routes, jobs and data
Trace each changed file forward to the entry points that use it: web routes, API endpoints, background jobs and scheduled tasks. Then check whether it defines or reads a database table or a stored format. Changes to data outlive the pull request.
Look at files that change together
The change history shows which files usually get edited in the same commit. If a pull request touches one half of a pair that normally moves together, ask where the other half is. This is often the most useful signal in a review, and it is nowhere in the diff.
Know the limits
Any static check misses imports built at runtime, calls between separately deployed services, and monorepo packages imported by name. Treat the result as a map of where to look, and say so in the review.
Copy-paste reviewer checklist
PR: <link> DEPENDENTS [ ] Direct dependents of each changed file listed [ ] Indirect dependents checked for shared modules [ ] Dynamic or runtime loading ruled out or noted TESTS [ ] Tests that reach the changed files: <list> [ ] Changed files with no test: <list> -> add test / accept risk ENTRY POINTS AND DATA [ ] Routes, endpoints, jobs affected: <list> [ ] Tables or stored formats changed: <list> CO-CHANGE [ ] Files that usually change with these were also considered LIMITS [ ] Unchecked areas named (services, monorepo packages)
Frequently asked questions
Is a green CI run enough to merge?
Only if tests reach the changed code. Check that first.
How deep should I follow dependents?
For shared helpers and core modules, at least two levels. For a leaf file used in one place, one level is usually enough.
Can this be automated?
The searching and the chain-following can. Deciding what matters is still the reviewer's job.
Skip the manual work
Ask Jentic maps your repo. Look up any file and see what depends on it, which tests reach it, and which routes and data it touches.