GitHub Metric
Engineering
Code Review Quality Score evaluates the substantiveness of pull request reviews by weighting factors such as comment depth, suggestions made, files reviewed versus files changed, and time spent. It distinguishes meaningful reviews from rubber-stamp approvals. Higher scores correlate with fewer post-merge defects.
Code Review Quality Score
Code Review Quality Score evaluates the substantiveness of pull request reviews by weighting factors such as comment depth, suggestions made, files reviewed versus files changed, and time spent. It distinguishes meaningful reviews from rubber-stamp approvals. Higher scores correlate with fewer post-merge defects.
Why code review quality score matters for GitHub users
Rubber-stamp reviews provide a false sense of security - they satisfy process requirements without catching defects. A quality score surfaces which reviews are thorough and which are perfunctory, enabling targeted coaching.
In GitHub workflows, review quality directly influences code churn and bug escape rate. Teams that invest in better reviews ship fewer hotfixes and spend less time on rework, freeing capacity for feature delivery.
Understand and act on code review quality score with KPI Tree
Extract review comment data and approval patterns from GitHub into your warehouse. Define a composite score in KPI Tree and link it to code churn and bug fix rate in your metric tree.
Assign ownership to engineering managers and use trend views to track review quality improvements after introducing guidelines or training.
Get started with your GitHub data
Pull metrics from GitHub directly through the Model Context Protocol.
Connect your existing warehouse where GitHub data already lands.
Our professional services team can build you turn-key AI foundations in a matter of weeks. Data warehouse on Snowflake/BigQuery, ELT with Fivetran, all modelled in dbt with a semantic layer.
Related GitHub metrics
Code Review Velocity
EngineeringMetric Definition
Code Review Velocity = Median(First Review Timestamp − PR Ready Timestamp)
Code Review Velocity measures the elapsed time from when a pull request is opened or marked ready for review to when the first substantive review is submitted. It is a key driver of lead time for changes. Long review waits are one of the most common causes of developer context-switching.
Pull Request Approval Rate
EngineeringMetric Definition
PR Approval Rate = PRs Approved on First Review / Total PRs Reviewed × 100
Pull Request Approval Rate measures the percentage of pull requests that are approved without requiring changes on their first review cycle. A high rate indicates well-aligned coding standards, effective planning, and good communication between authors and reviewers.
Code Churn Rate
EngineeringMetric Definition
Code Churn Rate = Lines Re-changed Within N Days / Total Lines Changed × 100
Code Churn Rate quantifies the percentage of lines changed within a short window after their initial commit. High churn often indicates unclear requirements, premature coding, or inadequate design reviews. It is a proxy for wasted engineering effort.
Bug Fix Rate
EngineeringMetric Definition
Bug Fix Rate = Bugs Closed in Period / Total Open Bugs at Start of Period × 100
Bug Fix Rate measures the proportion of bug-labelled issues closed within a given period relative to the total number of open bugs. It reflects a team's capacity and prioritisation of quality work. A consistently low rate may signal under-investment in reliability.
All GitHub metrics
Empower your team to understand and act on GitHub data
Map what drives your metrics, measure progress at any grain, prove what works statistically, and deliver personalised action plans to every team member.