Blog

Pull request review latency: what it is, how to measure it, and how to cut it

· Phillip Akuamoah-Boateng · 8 min read

When a pull request sits waiting for review, nothing about it improves. The author moves on to something else, the branch drifts from main, and the change gets harder to review the longer it waits. That wait has a name: pull request review latency.

Most teams feel it before they measure it. This post covers what review latency is, why it matters for delivery, how to measure it from GitHub without fooling yourself, what good numbers look like, and how to bring it down.

What pull request review latency is

Review latency is the time from when a pull request is ready for review to when it’s approved and merged. It starts at “ready”, not at the first commit, and not at the moment a draft was opened. It splits into three segments:

  1. Pickup time: from ready for review until someone other than the author submits a first review. Also called time to first review.
  2. Review and rework rounds: from the first review until approval. Comments, fixes, re-review, sometimes several times.
  3. Approve to merge: from approval until the change lands. Usually short, unless checks are slow or nobody presses the button.

PR cycle time is a wider measure. It usually runs from the first commit (or from opening) to merge, so it also includes coding time. Review latency is the part of cycle time where the author is mostly waiting on someone else. That makes it the part a team can change fastest.

Of the three segments, pickup time is usually the one to watch. Nobody is working on the change during it. It’s pure queue time, and it’s where pull requests get forgotten.

Why it matters

It feeds straight into lead time. DORA’s lead time for changes runs from commit to production, and every hour a pull request waits for review is an hour added to it. For many teams, review is the biggest stage they control. See where lead time for changes actually goes.

It forces context switching. An author who waits a day for feedback has started something else by the time it arrives. They switch back, reload the change into their head, fix it, and switch away again. Each round costs more than the fix itself.

Waiting pull requests grow. While a change waits, the author keeps going: the follow-up goes on the same branch, or the next change is stacked on top. Bigger changes take longer to review, so the wait gets longer. Google’s study of its own code review found the median wait for first feedback was under an hour for small changes and about five hours for very large ones (Modern Code Review: A Case Study at Google).

How to measure it

GitHub records everything you need. For each pull request, collect four timestamps:

  • Ready for review: the pull request’s created_at, or, if it was opened as a draft, the first ready_for_review event on its timeline.
  • First review: the earliest submitted_at among its reviews, ignoring the author’s own.
  • Approval: the submitted_at of the review whose state is APPROVED.
  • Merge: the pull request’s merged_at.

Pickup time is ready to first review. Review time is first review to approval. Approve to merge is the rest. Add them up and you have review latency.

Three rules that keep the numbers honest

  • Use the median and p90, not the mean. Review times are skewed. One pull request that waited over a holiday drags the mean up for the whole month. The median tells you what a typical change sees. The p90 tells you how bad the slow ones get, and the slow ones are what people remember.
  • Count working hours only. A pull request opened at 5pm on Friday and reviewed at 10am on Monday waited one working hour, not 65 hours. Counting nights and weekends punishes the wrong people and hides real delays inside the noise. Use each reviewer’s working hours and time zone where you can.
  • Exclude draft time. A draft isn’t asking for review. Start the clock when it’s marked ready, or you’ll blame reviewers for time the author was still working.

Pickup time from the GitHub REST API

This TypeScript calculates pickup time for one pull request. It uses the pull request, its timeline (for ready_for_review) and its reviews. It runs on Node 18 or later with a token in GITHUB_TOKEN.

const GH = "https://api.github.com";
const headers = {
  Accept: "application/vnd.github+json",
  Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
};

async function get<T>(path: string): Promise<T> {
  const res = await fetch(GH + path, { headers });
  if (!res.ok) throw new Error(`${res.status} ${path}`);
  return res.json() as Promise<T>;
}

type Event = { event: string; created_at?: string };
type Review = { user: { login: string }; submitted_at?: string };

/** Hours from "ready for review" to the first review by someone else. */
export async function pickupHours(owner: string, repo: string, n: number) {
  const base = `/repos/${owner}/${repo}`;
  const pr = await get<{ created_at: string; user: { login: string } }>(
    `${base}/pulls/${n}`,
  );
  const events = await get<Event[]>(`${base}/issues/${n}/timeline?per_page=100`);
  const reviews = await get<Review[]>(`${base}/pulls/${n}/reviews?per_page=100`);

  // Opened as a draft? The clock starts when it was marked ready.
  const ready = events.find((e) => e.event === "ready_for_review");
  const start = new Date(ready?.created_at ?? pr.created_at).getTime();

  const first = reviews.find(
    (r) =>
      r.user.login !== pr.user.login &&
      r.submitted_at &&
      new Date(r.submitted_at).getTime() >= start,
  );
  if (!first?.submitted_at) return null; // still waiting

  return (new Date(first.submitted_at).getTime() - start) / 3_600_000;
}

It returns wall-clock hours. For working hours, replace the last subtraction with a function that only counts time inside your team’s working day. It also reads one page of events and reviews, which covers almost every pull request. Run it over the last 90 days of merged pull requests and take the median and p90.

If you’d rather not maintain the script, the code review analytics guide covers what else to track alongside it.

What good looks like

LinearB’s 2026 benchmarks cover more than 8.1 million pull requests from 4,800 teams (Software Engineering Benchmarks Report). Pickup time runs from ready to first review. Review time runs from the first review to merge.

TierPickup timeReview time
EliteUnder 1 hourUnder 3 hours
Good1 to 4 hours3 to 14 hours
Fair5 to 16 hours15 to 24 hours
Needs focusOver 16 hoursOver 24 hours

Research on large engineering organisations points the same way:

  • At Google, the median review latency for the whole process is under 4 hours, and the median change is 24 lines (Sadowski et al., ICSE SEIP 2018).
  • The same paper puts the median time to approval at about 24 hours at Microsoft, and cites Rigby and Bird’s figures of 14.7 to 19.8 hours across projects at AMD, Chrome OS and Microsoft.
  • Google’s engineering guidance expects feedback on a code review within 24 working hours (Software Engineering at Google, chapter 9).

Two things stand out. Google’s changes are small and its reviews are fast, and the first helps the second. And “within a day” is the ceiling at Google: its median is a few hours. If your median pickup time is measured in days, there’s a lot of queue time to win back.

How to reduce pull request review latency

1. Keep pull requests small

Small changes get picked up faster, because a reviewer can fit them between other work, and they come back with fewer rounds of rework. If your p90 is driven by a handful of huge pull requests, start here. See why small pull requests get reviewed faster.

2. Give every pull request one owner

A review requested from a team, or from three people, often belongs to nobody. Each person assumes someone else has it. Pick one accountable reviewer per pull request. Round-robin assignment from a pool of reviewers spreads the load evenly and makes the choice for you. Others can still review, but one named person is on the hook.

3. Agree a review SLA

Write down how fast a first review should come, in working hours. Four working hours keeps you in LinearB’s “good” pickup tier; Google’s ceiling is one working day. An SLA turns “it’s been a while” into a clear line that a pull request has either crossed or not. It also gives reviewers permission to stop what they’re doing for a review, because the team agreed it matters.

4. Remind, then escalate

An SLA nobody checks is a wish. The pull requests that blow past it are the ones nobody is looking at, so something has to look for them. Reminders do that, and the research says they work.

Microsoft Research built an internal tool, also called Nudge, that sends reminders on overdue pull requests (Maddila et al., ACM TOSEM 2022). In a randomized trial across 147 repositories and 8,500 pull requests, it cut resolution time by 60%. Developers marked 73% of the reminders as positive. Microsoft later scaled it to 8,000 repositories, where it sent 210,000 notifications in a year, with similar results.

What makes reminders useful rather than noise:

  • Send them to one person, directly. A message in a busy channel is easy to scroll past. A direct message to the accountable reviewer is hard to miss, and it’s clearly theirs.
  • Wait until a pull request is actually late. Remind when it crosses your SLA, not the moment it opens. Skip drafts, and consider waiting for checks to pass, so nobody is chased to review a change that’s still red.
  • Respect working hours. A reminder at 11pm teaches people to mute the bot. Send them inside the reviewer’s working day.
  • Stop the moment it’s done. A review, a merge or a close ends the chase. Reminders that keep coming after the work is finished lose trust quickly.
  • Escalate when reminders don’t work. This is the step most setups skip. If the reviewer hasn’t responded after a few reminders, they’re probably on leave, swamped or stuck. Another reminder won’t change that. Tell a lead, or reassign the review to the next person in the pool, so the pull request gets a reviewer who can actually act.

Escalation is what turns an SLA into a guarantee. Without it, reminders cover the reviewer who forgot. With it, they also cover the reviewer who can’t, and that’s where the worst p90 waits come from.

Two things to set up if you build this yourself: a timeline (first reminder after the SLA, then repeats at a fixed interval, then escalation after a set number), and a clear rule for who gets escalated to. The guide to Slack pull request reminders compares the usual options, and how chasing works shows the timeline Nudge uses.

← All posts