GitHub Copilot code review can identify potential problems in a pull request and leave comments explaining what should be changed. These comments may cover bugs, security risks, performance problems, concurrency issues, documentation, and other coding concerns.
However, generating review comments is only one part of the code review process. The more important question is what developers do after receiving that feedback.
Do developers apply Copilot's suggestions? Do they fix the issue manually? Do they ask Copilot to make the correction? Are security-related comments handled more consistently than performance suggestions?
Without measuring these outcomes, a team can know how many comments Copilot generates but still have little understanding of whether the feedback helps improve the code.
GitHub now provides Copilot code review outcome metrics through Repository insights and the Copilot usage metrics API. These metrics help teams understand which types of feedback developers act on, how often comments are addressed, and where the review process may need improvement.
In this article, we will explore how these metrics work and build a small Python reporting tool to analyze Copilot code review outcomes by comment category and severity.
Understanding What Counts as an Addressed Comment
Before calculating metrics, it is important to understand what GitHub considers an addressed comment.
GitHub does not count only comments where a developer clicks Apply suggestion. A comment can be considered addressed through several different actions:
- Applying the suggested code change.
- Asking Copilot to make the fix.
- Pushing a correction made manually or with another agent.
- Accepting the feedback and explicitly deferring the fix to a later pull request.
This definition is broader than simply checking whether a suggested code block was applied.
For example, Copilot might identify that an API endpoint does not validate an incoming value. A developer could fix the problem by rewriting the validation logic manually instead of applying Copilot's suggested change. The feedback may still count as addressed.
There is another important detail: GitHub evaluates these outcomes when the pull request is merged. The metrics are therefore associated with the merge date, not the date on which Copilot originally posted the comment.
The evaluation covers published Copilot code review comments on pull requests. Comments from human reviewers, other review tools, and Copilot code review in the IDE are not included.
Also, an addressed comment does not always mean that the code was already corrected. Explicitly accepting feedback and deferring the fix to a later pull request can also count as addressed. Teams should therefore interpret this metric as developer action on feedback rather than proof that every reported issue has been fixed in the current pull request.
Understanding the Available Metrics
GitHub provides a copilot_code_review object in repository-level Copilot usage metrics reports. It contains the total number of evaluated comments, the number of addressed comments, and breakdowns by different attributes.
The main fields include:
| Metric | Description |
|---|---|
| total_comments_evaluated | Number of comments evaluated for an outcome |
| total_comments_addressed | Number of evaluated comments developers acted on |
| review_comments_by_severity | Breakdown by High, Medium, and Low severity |
| review_comments_by_review_tier | Breakdown by Lite, Balanced, and Max review effort |
| review_comments_by_comment_type | Breakdown by categories such as Bug, Security, and Performance |
| review_comments_by_customization | Breakdown by instructions, skills, MCP servers, and other customization |
These fields help answer different questions. The total counts show overall activity, while the breakdown arrays help identify which kinds of feedback developers are acting on.
For example, a repository might have a high overall address rate but a low rate for security-related comments. This does not automatically mean that developers are ignoring security problems. It gives the team a reason to inspect the actual feedback and understand why those comments were not addressed.
Calculating the Overall Address Rate
The first useful measurement is the overall address rate. It represents the percentage of evaluated Copilot comments that developers addressed.
The formula is:
Address Rate =
(Addressed Comments / Evaluated Comments) * 100Consider a repository with the following results:
| Metric | Count |
|---|---|
| Evaluated comments | 250 |
| Addressed comments | 190 |
| Not addressed | 60 |
The address rate is:
(190 / 250) * 100 = 76%This means developers acted on 76% of the evaluated feedback.
The remaining 24% was not counted as addressed. These comments may have been considered unnecessary, incorrect, irrelevant to the implementation, or simply left unresolved. The metric alone does not explain the reason.
It is also important to handle cases where no comments were evaluated. If the evaluated count is zero, the address rate should be reported as unavailable rather than zero percent.
A zero-percent rate means comments were evaluated but none were addressed. No evaluated comments means there is no meaningful rate to calculate.
Comparing Results by Comment Category
The overall address rate is useful, but it can hide differences between types of feedback.
For example, developers might address most bug-related comments but leave several performance suggestions unresolved. A category-level report makes these differences visible.
GitHub provides the review_comments_by_comment_type array for this purpose.
A simplified example looks like this:
{
"total_comments_evaluated": 100,
"total_comments_addressed": 78,
"review_comments_by_comment_type": [
{
"comment_type": "bug",
"total_comments_evaluated": 40,
"total_comments_addressed": 35
},
{
"comment_type": "security",
"total_comments_evaluated": 20,
"total_comments_addressed": 18
},
{
"comment_type": "performance",
"total_comments_evaluated": 25,
"total_comments_addressed": 15
},
{
"comment_type": "documentation",
"total_comments_evaluated": 15,
"total_comments_addressed": 10
}
]
}Using this data, the team can calculate a separate rate for each category.
| Category | Evaluated | Addressed | Address rate |
|---|---|---|---|
| Bug | 40 | 35 | 87.5% |
| Security | 20 | 18 | 90% |
| Performance | 25 | 15 | 60% |
| Documentation | 15 | 10 | 66.7% |
The performance category has the lowest address rate in this example. This is a useful starting point for investigation.
The team might discover that some performance suggestions are too general, some require additional measurements, or developers are postponing optimization work. Reviewing the actual comments helps distinguish these situations.
Do not assume that a lower address rate means Copilot is producing poor feedback. The type of work, development priorities, and risk level can all influence how developers respond.
Analyzing Copilot Review Results With Python
The Copilot usage metrics API provides repository-level reports in NDJSON format. This makes it possible to build a small reporting tool without creating a complex data-processing system.
The following example reads a repository report and calculates address rates by comment category.
Assume the downloaded report is saved as repository-report.ndjson.
import json
from collections import defaultdict
category_metrics = defaultdict(
lambda: {
"evaluated": 0,
"addressed": 0
}
)
with open(
"repository-report.ndjson",
"r",
encoding="utf-8"
) as file:
for line in file:
if not line.strip():
continue
record = json.loads(line)
review = record.get(
"copilot_code_review",
{}
)
categories = review.get(
"review_comments_by_comment_type",
[]
)
for item in categories:
category = item.get(
"comment_type",
"unknown"
)
category_metrics[category][
"evaluated"
] += item.get(
"total_comments_evaluated",
0
)
category_metrics[category][
"addressed"
] += item.get(
"total_comments_addressed",
0
)
print("Copilot Code Review Results")
for category, metrics in sorted(
category_metrics.items()
):
evaluated = metrics["evaluated"]
addressed = metrics["addressed"]
if evaluated == 0:
rate = None
else:
rate = (addressed / evaluated) * 100
print(f"\nCategory: {category}")
print(f"Evaluated: {evaluated}")
print(f"Addressed: {addressed}")
if rate is None:
print("Address Rate: N/A")
else:
print(f"Address Rate: {rate:.2f}%")The script reads each repository record and processes its comment categories. It adds the evaluated and addressed counts for each category across the reporting file.
This is important when a report contains multiple repositories or reporting dates. The script calculates the rate from the combined counts rather than averaging individual percentages.
For example, suppose one day has 8 addressed comments out of 10 and another day has 45 addressed comments out of 50.
The correct combined rate is:
Total Addressed = 8 + 45 = 53
Total Evaluated = 10 + 50 = 60
Address Rate = (53 / 60) * 100
= 88.33%A simple average of 80% and 90% would produce 85%, which does not represent the actual combined result.
Comparing Feedback by Severity
Comment category tells the team what type of issue Copilot identified. Severity helps explain how important the feedback may be.
GitHub provides the review_comments_by_severity array with High, Medium, and Low breakdowns.
For example:
| Severity | Evaluated | Addressed | Address rate |
|---|---|---|---|
| High | 30 | 28 | 93.3% |
| Medium | 70 | 52 | 74.3% |
| Low | 50 | 25 | 50% |
This example shows that developers addressed most high-severity comments, while the address rate for low-severity feedback was lower.
This can be reasonable for a team working under delivery deadlines. Developers may prioritize security and correctness problems over minor improvements.
However, teams should not automatically ignore low-severity comments. Repeated small problems can become maintenance issues when they accumulate across a large codebase.
Severity should be used to prioritize investigation, not as the only measure of review quality.
Comparing Review Effort and Customization
GitHub also provides breakdowns by review effort and customization.
The review effort breakdown includes Lite, Balanced, and Max. This allows teams to compare the outcomes of comments generated under different review effort levels.
The customization breakdown includes information about custom instructions, agent skills, MCP servers, and reviews without customization.
For example, a team might compare the address rates for reviews that used custom repository instructions with those that did not.
This can help identify whether repository-specific guidance is producing feedback that developers find more relevant.
However, avoid drawing conclusions from a small sample. Different review configurations may be used on different repositories or different types of pull requests. A higher address rate does not prove that a particular configuration caused better results.
Also, a comment that uses more than one customization can appear in more than one customization entry. Therefore, customization breakdown totals may exceed the overall comment totals. Do not add these values together as though they were mutually exclusive categories.
Building a Useful Engineering Dashboard
Once the metrics are available, teams can store them in a database and create a dashboard for regular review.
A useful dashboard should include the overall address rate, evaluated comment count, addressed comment count, and category-level results. It should also provide severity and review-effort breakdowns.
For a multi-repository organization, the dashboard can show which repositories have enough review activity to support meaningful comparisons.
A practical reporting process could follow these steps:
- Retrieve the daily repository report through the Copilot usage metrics API.
- Parse the NDJSON records.
- Store the raw counts and reporting date.
- Calculate weighted address rates for each repository and category.
- Display trends over time.
- Review categories with low address rates and inspect the corresponding feedback.
Keep the original counts in the database. Storing only percentages makes it difficult to understand whether a rate is based on 10 comments or 1,000 comments.
It is also useful to keep the reporting date separate from the pull request creation date. Since comment outcomes are counted when a pull request merges, the report reflects merge activity rather than the original review date.
Common Mistakes When Measuring Review Outcomes
One common mistake is treating addressed comments and applied suggestions as the same metric. Applied suggestion counts only include ready-to-apply code suggestions that someone applied. Addressed comments include other actions, such as manual fixes and asking Copilot to make changes.
Another mistake is treating every unaddressed comment as a false positive. A comment may be valid but deferred to a later pull request, or the developer may have a reason for not acting on it. The metrics do not provide a complete explanation for every individual decision.
Teams should also avoid comparing categories without considering their sample sizes. A category with two evaluated comments can show a 100% address rate even though the result is based on very little activity.
Finally, do not add all customization breakdown values together. A comment influenced by multiple customizations can appear in multiple entries.
Best Practices for Reliable Measurement
Use evaluated and addressed counts together with every percentage. This provides context and prevents small samples from appearing more significant than they are.
Compare results over a consistent reporting period and use weighted calculations when combining data. Investigate high-severity unaddressed feedback first, but also review repeated patterns in medium- and low-severity categories.
Keep the distinction between addressed feedback and applied suggestions clear in reports. They measure different developer actions and should not be combined into a single metric.
Most importantly, use these numbers to improve the review process rather than judge individual developers. A low address rate may indicate unclear instructions, irrelevant feedback, different development priorities, or a genuine quality issue. The actual comments provide the context needed to understand the result.
Summary
Measuring Copilot code review outcomes helps teams understand more than how many comments an AI reviewer generates. GitHub's repository-level metrics show how developers respond to feedback across categories, severity levels, review effort, and customization.
By processing these metrics with Python and presenting them in an engineering dashboard, teams can identify which types of feedback are most frequently addressed and where further investigation is needed.
The important distinction is that an addressed comment represents action on feedback, not necessarily proof that the suggested code was applied or that the issue was fully resolved in the same pull request. Understanding this difference helps teams use Copilot metrics responsibly and make better decisions about their code review process.

Join the conversation! Your thoughts help the community grow.