Skip to content

Code review analytics

Documentation Index

Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt

Use this file to discover all available pages before exploring further.

Analytics show how reviews affect your team’s throughput, from cycle time to how often engineers act on Sourcery’s comments. They live on the Analytics page in the dashboard and are included on every plan for GitHub organizations. GitLab accounts don’t have the Analytics page yet.

Most numbers cover the pull requests merged in the period you pick. Pull requests opened by dependency bots, such as Dependabot and Renovate, are left out.

TermMeaning
Human reviewA review from a person.
Sourcery reviewA review Sourcery posted, including each re-review after new commits.
AcceptedA Sourcery comment that a later Sourcery review found had been addressed.

Cycle time runs from opening a pull request to merging it. Dev cycle time starts at the first commit instead. Dev Cycle Time and Median Cycle Time per Week use dev cycle time; the rest use cycle time.

The stage charts split that time up:

StageFromTo
Pre-ReviewFirst commitReady for review
PickupReady for reviewFirst human review
ReviewFirst human reviewFirst human approval
MergeFirst human approvalMerge
MetricWhat it means
PRs MergedPull requests merged in the period.
Median Cycle TimeTypical time from opening a pull request to merging it.
Time to First ReviewTypical wait from ready for review to the first human review.
Sourcery Acceptance RateShare of Sourcery’s comments that were accepted.
Median PR SizeTypical lines added plus lines deleted.
Human Review CoverageShare of merged pull requests that a person reviewed.
PR Cycle Time by StageHow long each stage takes, week by week.
Review Decision DistributionHuman reviews by outcome: approved, commented, or changes requested.
PRs Merged per WeekPull requests merged each week.
PR Size DistributionHow many merged pull requests fall in each size range.
MetricWhat it means
Median Pre-Review TimeTypical Pre-Review stage.
Median Time to First ReviewTypical Pickup stage.
Median Time to ApprovalTypical Review stage.
Median Merge TimeTypical Merge stage.
Dev Cycle TimeTypical time from the first commit to merge.
Cycle Time Stages Over TimeEach stage, week by week.
PR Size vs Cycle TimeEach merged pull request’s size against its cycle time.
Cycle Time DistributionHow many merged pull requests fall in each cycle-time range.
PR Size DistributionHow many merged pull requests fall in each size range.
Recent PRsMerged pull requests with their size, cycle time, and stage times.
MetricWhat it means
Sourcery ReviewsReviews Sourcery posted on the merged pull requests.
Human ReviewsReviews people posted on the merged pull requests.
Sourcery Comment AcceptanceShare of Sourcery’s comments that were accepted.
Human Review CoverageShare of merged pull requests that a person reviewed.
Avg Revision RoundsRounds of fixes after a reviewer requested changes, per pull request.
Human Time to ReviewTypical wait from ready for review to the first human review.
Human and Sourcery ReviewsTotal reviews and comments from Sourcery and from people.
Review DecisionsSourcery’s and people’s reviews by outcome.
Acceptance by CategorySourcery comments posted and accepted, by category.
Acceptance Rate TrendSourcery’s acceptance rate, week by week.
Comment Status BreakdownSourcery’s comments each week: accepted, resolved on GitHub, outdated, or still open.
Sourcery Comment DetailsEach Sourcery comment and whether it was dealt with.
MetricWhat it means
Active DevelopersPeople who merged a pull request in the period.
Avg PRs/Dev/WeekPull requests each developer merges in a typical active week.
Avg Coding Days/WeekDays a developer commits in a typical active week.
Active ReviewersPeople who reviewed a pull request in the period.
Top PR AuthorsThe developers who merged the most pull requests.
Top ReviewersThe people who reviewed the most pull requests.
Developer Activity by WeekPull requests opened and merged, and reviews given, each week.
Developer MetricsOne row per developer.
MetricWhat it means
Repositories TrackedRepositories with a pull request merged in the period.
Most Active RepoThe repository with the most merged pull requests.
Slowest RepoThe repository with the longest typical cycle time.
Repos by PR VolumeRepositories ranked by merged pull requests.
Revert Rate by RepoShare of merged pull requests that revert an earlier change.
Review Coverage by RepoShare of merged pull requests reviewed by anyone, and by a person.
Repository MetricsOne row per repository.

Review Coverage here counts Sourcery’s reviews, so a repository Sourcery reviews shows close to full coverage.

MetricWhat it means
PRs Merged per WeekPull requests merged each week.
Median Cycle Time per WeekTypical dev cycle time, week by week.
Median PR Size per WeekTypical pull request size, week by week.
Review Coverage per WeekShare of merged pull requests reviewed by a person, and by Sourcery.
Sourcery Acceptance Rate per WeekSourcery’s acceptance rate, week by week.
Active Developers per WeekPeople who merged a pull request each week.
Time to First ReviewTypical wait for the first review from Sourcery, and from a person.