How long pull requests wait: a sample team report
This is the shape of the report we make for a team's Azure DevOps organization, free for the last three months. The numbers below are made up: an example team of about 12 developers over three months, with reviewers shown as letters, as in a real report. Nothing here was counted from anyone's data.
Read them for what each part of the report says, not as a benchmark. In a real report every number is counted from your own organization's pull requests, with the script below.
1. Overview
| Pull requests by people | 412 |
|---|---|
| Completed | 361 |
| Abandoned | 23 |
| Still open | 28 |
| Bot pull requests left out | 41 |
2. Time to first review
Hours from the moment a pull request was created, or published if it started as a draft, to the first vote or comment by someone other than its author.
| Pull requests reviewed | 398 |
|---|---|
| Median | 3.2 hours |
| 75% reviewed within | 11.5 hours |
| 90% reviewed within | 26.8 hours |
| Waited a day or more, including never reviewed | 61 (15%) |
3. Open now and waiting a day or more, by reason
| Reason | Pull requests |
|---|---|
| No reviewer asked | 2 |
| Reviewer asked, no answer | 10 |
| Build failing | 3 |
| Changes requested (the author's turn) | 2 |
| Reviewed, approval still missing | 2 |
Here most stuck pull requests have a reviewer who has not answered. In a monthly report this is where we add what to change, such as a second required reviewer group or a reminder after one working day.
4. Who gives the first review (top 6)
| Reviewer | First reviews | Median hours |
|---|---|---|
| A | 112 (28%) | 2.1 |
| B | 54 (14%) | 3.0 |
| C | 41 (10%) | 4.4 |
| D | 37 (9%) | 3.8 |
| E | 29 (7%) | 6.2 |
| F | 22 (6%) | 5.1 |
One person gives more than a quarter of all first reviews. When that person is away, the wait grows for everyone.
5. Time lost
Developers × pull requests per developer per week × minutes to get back into a pull request after a wait × 4.3 weeks × hourly cost. For example, 50 developers, 3 pull requests a week each, 30 minutes, US$40 an hour: about 320 hours, or US$12,900 a month. We fill it in with your numbers.
Your own count
- Run it yourself, so no token leaves your company: count_stuck_prs_azure.py (one file, Python 3.8 or later, standard library only). It reads your token from the environment variable
AZURE_DEVOPS_PATor asks for it without showing it, and never prints or saves it. It makes only four kinds of GET requests, all listed at the top of the file, and stops before sending anything else. It works with Azure DevOps Services and Azure DevOps Server. - Or give us a read-only token: a personal access token with the scope Code (Read) only, for one organization, expiring in seven days. We never read file contents, keep no titles, descriptions or comment text, and delete the data within 30 days.
- The script is new. For the first teams we check its numbers together: open two or three pull requests from the report in Azure DevOps and compare the times with us.
After the free count, the same report comes every month with what to change: US$350 a month for up to 50 developers, US$550 for up to 100. The report is a service separate from the plugin; Azure DevOps Pull Requests licenses stay on JetBrains Marketplace. Write to support@lesstep.com.
The wait figure on the product page comes from Graphite, State of Code Review 2024. Azure DevOps is a trademark of Microsoft Corporation; this report and the plugin are not affiliated with or endorsed by Microsoft.