Guide

How to review a pull request.

A good review starts from what the change reaches, not from the first file in the diff. This checklist works for any team and any language, and says what to look for at each step.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.

What a review is for

A review catches mistakes before they ship, keeps the design of the codebase coherent, and makes sure more than one person understands every change. It is not the place to argue about formatting: a linter and a formatter do that better and without hurt feelings.

Reading the diff from top to bottom treats every line as equally important. They are not. A renamed variable and a changed database write sit next to each other in the file list, and only one of them can break production.

1. Read the description and the ticket first

Before any code, find out what the pull request claims to do and why. Read its description and the ticket or issue it links to. Then, as you read the code, check that the change does that, all of it and nothing else.

If there is no description, ask for one. A reviewer who has to guess the intent can only check that the code runs, not that it is right.

2. Find what the change reaches

List the functions the pull request changes, then follow their callers outwards: which routes, screens, jobs and database tables end up running the new code. This is the blast radius, and it tells you how careful to be. A change to a helper with forty callers deserves more attention than a new file nothing else uses yet.

Your editor's "find references" or call hierarchy answers this one function at a time. A call graph answers it for the whole change at once.

3. Review the risky parts first

Read these closely, in roughly this order, and skim the rest.

  • Writes to the database, and migrations. They are hard to undo once they have run.
  • Routes and public APIs. Other code, or other teams, depend on their shape.
  • Authentication, permissions and anything that handles secrets or personal data.
  • Shared code with many callers, where one change lands in many places.
  • Changed code that no test reaches.

Generated files, lockfiles and pure renames can usually be skimmed. Say so in the review, so the author knows you looked.

4. Check the tests

For each important change, ask whether a test would fail if the change were wrong. New branches in the code should have a test that takes them. A test that only checks that a function runs without throwing proves very little. If the pull request fixes a bug, there should be a test that reproduces it.

5. Run it when it matters

For a change to behaviour a user will see, check out the branch and try the path it changes. Five minutes of clicking finds problems that no amount of reading will, especially in user interfaces and in error handling.

6. Write comments people can act on

  • Say what you would change and why, so the author can agree or explain.
  • Mark what blocks the merge and what does not. A "nit:" prefix for small things is a common convention.
  • Ask a question when you are not sure, instead of asserting that something is wrong.
  • Suggest the code when it is short. It is faster for everyone than describing it.
  • Say what is good, too. It tells the author what to keep doing.

7. Decide, and do not sit on it

Approve when it is ready, request changes when something must change first, and comment when you only have questions. Answer quickly: a pull request waiting days for review goes stale, collects conflicts and makes the next one bigger. If one is too large to review well, ask for it to be split.

A short code review checklist

  • Does the change do what the description and the ticket say, and nothing else?
  • Which routes, jobs and tables does it reach, and are they all expected?
  • Are data writes, migrations and permission checks right?
  • Would a test fail if this were wrong? Is the bug, if any, reproduced by a test?
  • Are errors handled, and does it behave on empty, missing and very large input?
  • Is anything removed that something else still uses?
  • Will the next person understand it without asking the author?

Reviewing a pull request in Nodeway

Nodeway is a desktop app that maps a repository, and it reviews pull requests on that map. Paste a pull request link on the start screen, or pick one from the branch switcher. Commenting and merging need you to sign in to GitHub in the app. The Pull request review page shows each step.

  • See what it reaches. Show impact (Shift+D) lights up the functions the pull request changes, then the routes, components, tables and tests that call them, within a few hops.
  • Know what to read first. The Changes panel opens on a brief whose "Read these first" list ranks the changed code by size, data writes, routes reached, callers and whether any test reaches it. With AI turned on, each item also gets a summary and what to watch for.
  • Walk through it. Press W to step through the change one function at a time, in the order a request flows.
  • Check it against the ticket. Link a Linear, Jira or ClickUp ticket and, with AI, check whether the change does what the ticket asks.
  • Comment, approve and merge. Comment on lines, collect them into one review, approve or request changes, and merge, all sent to GitHub.
The walkthrough bar summarising a pull request's 16 changes across 12 files, with its steps listed below
The walkthrough of a pull request in the open-source Documenso repository.

Sharing

You can copy the impact summary into the pull request as Markdown or a Mermaid diagram, or copy a link that opens the same review, with one part of the map selected, in a teammate's Nodeway.

New to the app? The getting started guide covers installing it and opening your first pull request. New to the codebase itself? Start with how to understand a large codebase. Choosing tools for your team? See the code review tools comparison. Writing the pull request yourself? Start from this pull request template.

Questions

What should I look for in a code review?

Whether the change does what its description and ticket say, what else it reaches, whether the risky parts (data writes, migrations, permissions, shared code) are right, and whether a test would fail if it were wrong. Leave formatting to linters.

How do I review a pull request on GitHub?

Open the pull request's Files changed tab, click the plus beside a line to comment, and choose Start a review so your comments are sent together. When you are done, click Review changes and pick Comment, Approve or Request changes.

How long should a review take?

Long enough to read the risky parts properly, which depends on the change more than its size. If a pull request is too big to review in one sitting, ask for it to be split. Large pull requests get shallower reviews.

Can Nodeway review a pull request without checking it out?

Yes. Paste a GitHub pull request link on the start screen and Nodeway fetches it into its own folder, so your checkout and any uncommitted work stay as they are.

See your whole codebase in minutes.

Open a folder and Nodeway maps it on your own computer. No account, and nothing is uploaded.

More guides