Bug Ratio measures the percentage of Pull Requests that are bug fixes or corrections in relation to the total number of PRs. This metric helps you understand how much of your development effort is spent fixing issues versus building new features. It can also be read as “Change Failure Rate” - the rate at which changes result in failures.
We automatically identify which PRs are bug fixes using AI language models (LLM) that analyze the Pull Request names and descriptions. The system then calculates the percentage of bug-related work relative to your total PR activity.What We Track:
PRs identified as bug fixes by AI analysis
Total number of PRs in the period
The percentage of bug-related work
How It’s Calculated:
Copy
Bug Ratio = (Bug Fix PRs) ÷ (Total PRs) × 100
For example, if 3 out of 15 PRs are identified as bug fixes, your bug ratio is 20%.How We Identify Bug Fixes:
We use advanced language models to analyze PR titles and automatically classify them. The AI looks for patterns like: