Code Review Metrics
Log pull requests by hand or paste a CSV to see time to first review and cycle time in working hours, and how review flows by PR size for the team.
How this works
Code review metrics show how pull requests (PRs) move through review: how long they wait for a first review and to merge, in the team's working hours, and how that changes with PR size. Use them to spot slow or overloaded review, not to rate people.
Code review metrics show how pull requests (PRs) move through review: how long they wait for a first review and to merge, in the team's working hours, and how that changes with PR size. Use them to spot slow or overloaded review, not to rate people.
When to use it
- When PRs wait days for review and work piles up.
- To check whether smaller PRs really merge faster for your team.
How to run it
- In Log a pull request, enter the Author (from your team), when it was Opened, First review and Merged (both optional), and the Reviewers, Review comments and Lines changed. Press Add PR; times can't be in the future or out of order.
- Or paste rows into Import from CSV and press Check rows: rows with errors are listed by line, and PR numbers already logged are skipped. Press Import to add the rest (Undo in the toast).
- In Working hours, set Day starts and Day ends and press Save working hours to count only those hours of each working day; leave them blank for whole days, or press Count whole days instead to go back. Working days and holidays come from the ceremony cadence.
- Read the verdict and the cards: Median time to first review and Median cycle time show from 3 PRs, P85 cycle time from 5. The basis is printed under the cards.
- Review flow by PR size compares small, medium and large PRs and flags large ones merged with no comment. The weekly median line draws once two weeks have three merges each.
- Edit or delete a PR in the Logged pull requests table. Intervals, control limits and the trend test are in Advanced analysis.
Tips
- Look at P85, not just the median. The slow tail is where people wait.
- PRs over 400 lines usually wait longer and get fewer comments; splitting them speeds review.
- The view is the team's and never ranks authors: numbers used to rate people get gamed.
Log a pull request
Import from CSV
Columns, with a header row in any order or without one in this order: prNumber, author, openedAt, mergedAt, reviewerCount, commentCount, linesChanged, description, firstReviewAt. Times as 2026-05-09T14:30; one with a zone (…Z) is read in your time zone. Comma, tab or semicolon separated; up to 1000 rows.
Working hours
Times count Mon–Fri, whole days. Working days and holidays come from the team's ceremony cadence; set the hours of a working day here, or leave them blank to count whole days.
