← Blog

How to Review a Merge Request: A Checklist

9 min de lecture

Key takeaways

  • Review a merge request in four ordered passes: description and acceptance criteria first, then the diff, then comments, then approve or request changes.
  • Read diffs in dependency order, starting with migrations, config, dependencies, and auth code, because these break things silently.
  • Make every review comment actionable by naming the file and line, stating the problem, and labeling it blocking, should-fix, or nit.
  • Treat agent-authored merge requests as hypotheses to verify: trust the diff over the commit message and check acceptance criteria explicitly.
  • Cap diffs at roughly 400 changed lines and move linting, type checks, and test runs into CI to keep review latency low.

Reviewing a merge request means four passes in order: check the description and acceptance criteria before touching the diff, read the diff for logic and scope creep, leave comments that state what to change and why, then approve or request changes. Each stage below gets a concrete checklist, tuned for agent-authored MRs at fleet volume.

What should you check before reading the diff of a merge request?

Read the description, branch, CI status, and scope before you open a single line of code. A diff without context wastes your review budget on the wrong problem. GitLab's own review workflow treats the description and metadata as the first stage of a review, before comment types or approvals come into play (GitLab merge request review docs).

Checklist: pre-diff review

  1. Description states the task and acceptance criteria, not just "fix bug".
  2. Branch name maps to one ticket or one agent session.
  3. CI is green, or failures are explained in the description.
  4. Diff scope matches the description: no drive-by refactors, no unrelated files.
  5. Token cost is proportional to the task; a three-hour session for a two-line change is a signal to investigate.

Why agent-authored MRs need a stricter description check

Agents fill descriptions confidently and sometimes wrongly. When a team runs up to thirty Claude Code and Codex sessions, "the three of us provide the tasks and the direction", so the description is the only contract between your intent and the agent's output (the Ticksly writeup). If the description is thin, send the agent back before reviewing. We apply the same rule to our own workflow at Aerunit's guide to reviewing agent pull requests: reject on weak descriptions first, diff second.

How do you read a git pull request diff efficiently without missing bugs?

Reading a diff efficiently means imposing an order on it: triage the files by risk, read line-by-line only where it matters, and let tests settle the rest. A random walk through 40 changed files guarantees you'll skim the one that matters. The order below takes a few minutes and catches most bugs before you read a single line of code.

Checklist: reading the diff

  1. Read the description and acceptance criteria first. Note what the agent claims it did.
  2. Check the file list before the code. Sort by additions and deletions.
  3. Read migrations, config, dependency changes, and auth code first. These break things silently.
  4. Read the diff hunk-by-hunk in dependency order, not alphabetical order.
  5. Check whether tests changed and whether they assert behavior or just exist.
  6. Re-read anything the agent touched twice. Double edits usually mean the first attempt failed and the fix is fragile.

Files to read first when the author is an agent

Agents optimize for passing checks, not for correctness you'd accept from a colleague. That means the highest-risk files are the ones where a wrong assumption still produces green tests: anything touching shared state, serialization, or another repo's contract. Read the diff against the acceptance criteria, not the description, because an agent will happily solve a slightly different problem than the one you assigned. If the merge request claims to touch one module and the diff spans three, that spread is itself a finding; it usually means the agent lacked context or wandered, and the fix is a tighter task, not more review passes. When the volume of agent-authored merge requests makes this discipline hard to sustain per reviewer, that's the coordination problem Aerunit (https://aerunit.ai/es/reviewing-agent-pull-requests) is built around, but the reading order above works with any review surface.

What makes review comments actionable instead of nitpicky?

A comment is actionable when the author can act on it in one pass: it names the file and line, states the problem, and says what done looks like. "This seems off" costs a round trip. "This retry loop caps at 3 but the task spec says 5, please match the acceptance criteria" costs none. The distinction matters double when the author is an agent, because an agent consumes your comment as instructions, not as conversation.

Label every comment with a level so the author knows what blocks the merge:

LevelMeaningExample
BlockingMerge fails until fixed"Auth token is logged in plain text; redact before merge."
Should-fixFix now or open a follow-up task"This N+1 query will hurt at scale; batch it."
NitTake it or leave it"Prefer Result over throwing here."

GitHub's own reviewer guidance makes the same split between blocking and non-blocking feedback in its documentation on reviewing pull requests.

Writing comments an agent can consume

Agents have no tone detector. Reference the exact line, state the expected behavior, and cite the acceptance criteria from the original task. If the agent fixed the wrong thing for three hours, the comment usually lacked a checkable condition. For the patterns we see when reviewing agent-authored PRs, see https://aerunit.ai/sv/reviewing-agent-pull-requests.

How do you review a merge request in VS Code instead of the web UI?

Reviewing in VS Code means you read the diff in the same environment where you can run the code, which catches bugs a web UI cannot. The workflow: check out the branch, review the diff in-editor, run tests, then comment or approve. For agent-authored merge requests specifically, see our guide to reviewing agent pull requests.

Setup: extensions and checkout

Install the GitHub Pull Requests extension so you can open the merge request, check out its branch, and see the diff without leaving the editor. If the agent worked in a git worktree, fetch and check out that branch directly instead. Verify the branch builds before you read a single line.

Checklist: reviewing in VS Code

  1. Check out the branch and confirm it compiles.
  2. Open the Source Control diff view and read changed files in dependency order, not alphabetical order.
  3. Run the test suite locally; an agent's green CI claim is a hypothesis until you verify it.
  4. Leave inline comments on the diff so the agent can address them on its next run.
  5. Reproduce one behavior manually if the change touches routing, auth, or state tracking.

When the web UI is still the better tool

Use the web UI when you only need to approve a trivial change, when CI logs matter more than the code, or when a teammate already started a comment thread there. VS Code wins on anything you would want to run.

When should you request changes versus approve a merge request?

Approve when the diff does what the acceptance criteria say, tests cover the changed paths, and nothing outside scope snuck in. Request changes when any of those three fail. If the agent burned three hours on the wrong thing, a verdict of "comments only" just guarantees a fourth hour.

Checklist: choosing the verdict

  1. Blocking issues. Broken behavior, security holes, or data loss. Anything else is a comment, not a blocker.
  2. Test coverage. New logic without a test that would fail without it means request changes.
  3. Scope creep. If the diff touches files the task never mentioned, reject the extras and ask for a rebase, even if the code is fine.
  4. Token budget. A verdict that spawns another full agent run costs API money, so batch your blocking findings into one review instead of dribbling them out.

Verdicts work the same whether you review in the web UI or through VS Code's built-in pull request review flow, so pick whichever surfaces the diff faster for you. If your fleet is agent-heavy, the reviewing agent pull requests guide covers verdict criteria tuned for machine-authored diffs.

How does reviewing AI-generated pull requests differ from human-authored ones?

The mechanics are identical; the priors are not. A human author knows the codebase and their own blind spots. An agent knows neither, so it will state a plan confidently and then drift from it. The Ticksly team runs up to thirty Claude Code and Codex sessions, pays roughly $8 per merge request in API costs, and describes their role as "the three of us provide the tasks and the direction" (How we run thirty Claude Code and Codex agents). Reviewing is where that direction gets enforced.

Trust the diff, not the commit message

Agent commit messages describe intent; the diff describes reality. Read the changed lines as if the description were a hypothesis you are testing. Watch for hidden scope: an agent asked to fix a bug may also refactor neighboring files, rename variables, or add tests that lock in wrong behavior. If the diff touches files the task never mentioned, that is a review comment before anything else.

Acceptance criteria as the review contract

With human authors, review style is a preference. With agents, acceptance criteria are the contract. Before approving, check each criterion against the diff explicitly: does the code do what the task said, nothing more? Agents also fail with confidence, so "the tests pass" is weaker evidence than usual. Verify the tests actually exercise the stated criterion rather than a tautology the agent wrote to satisfy itself.

How do you keep merge request reviews fast without lowering quality?

Budget review time like compute. Set a hard size limit, roughly 400 changed lines per merge request, and split anything larger into stacked branches. Small diffs get reviewed in minutes, so agents keep shipping instead of queuing behind one blocked request.

Move work out of human review wherever you can. Linting, type checks, and test runs belong in CI, not in your comment thread. Agents should run retries on their own failures and only open a merge request when acceptance criteria pass, so what reaches you is a claim to verify, not a mess to clean up.

Checklist: keeping review latency low

  • Cap diff size per merge request; stack anything bigger.
  • Require the agent's task description and acceptance criteria in the description.
  • Auto-assign each request to one reviewer, never the whole team.
  • Review in a fixed daily block rather than reactively.
  • Track time-in-review per request; anything over a few hours gets escalated or auto-rebased.

Where orchestration fits for agent-authored MRs

When you run a fleet instead of one agent, the bottleneck shifts from review speed to state tracking: which agent is waiting, which is stuck, which burned its token budget on the wrong repo. This is the gap Aerunit targets. It supervises parallel agents across multi-repo worktrees, keeps task distribution and retries out of your terminal tabs, and routes finished merge requests to review with their criteria attached. Cursor and Vibe Kanban cover parts of this workflow; an orchestrator earns its place when the screen no longer tells you which agent needs you next.

FAQ

Is a merge request the same as a pull request?

Functionally, yes. GitLab calls it a merge request, GitHub and Bitbucket call it a pull request, and both describe the same act: proposing a branch for merging into a main branch with a review step. The differences are naming plus minor workflow details, so any review checklist applies to both interchangeably.

How long should a code review take?

Aim for minutes, not days. A diff under roughly 400 changed lines should take a single pass of 10 to 20 minutes, and anything larger should be split into stacked branches. Track time-in-review per request; if one sits longer than a few hours, escalate it or auto-rebase rather than letting it queue.

Can I review a pull request locally without an extension?

Yes. Fetch the branch directly, check it out, and use plain git commands: git diff main...branch-name for the diff and git log for commit history. Then run the test suite before reading anything. The editor extension only saves checkout steps; the discipline of reviewing in dependency order stays the same.

How do I review multiple agent merge requests in parallel without losing track?

Assign each request to exactly one reviewer, never the whole team, and review in a fixed daily block instead of reactively. Require the agent's task description and acceptance criteria in every request so you can verify claims quickly. When the fleet grows past what a screen can track, an orchestrator that routes finished requests with their criteria attached helps.

Aerunit

Occupez les agents. Gardez la réflexion.

Les inscriptions sont ouvertes — créez un compte et commencez avec des crédits à l'usage. Aucun abonnement, et les équipes partagent une réserve de crédits sans surcoût.

Créer un compte