GitHub Copilot can review pull requests and identify potential problems before code is merged. It can provide feedback about bugs, security concerns, performance issues, concurrency problems, and other coding practices. However, enabling an AI code review feature does not automatically tell a team whether that feedback is useful or whether developers are acting on it.

For example, Copilot might identify a potential security issue in a pull request, but the developer may decide that the warning does not apply to the current implementation. In another situation, the developer might accept the suggestion, ask Copilot to fix the problem, or make the change manually. Simply counting the number of reviews or suggestions does not explain what happened after the review.

GitHub Repository insights helps address this gap. It brings together pull request activity and Copilot code review outcomes for an organization-owned repository. Teams can use these metrics to understand how developers respond to Copilot feedback, identify pull requests that are not receiving Copilot reviews, and investigate areas where the review process needs improvement.

In this article, we will explore Repository insights, understand its key metrics, and see how to retrieve repository-level review data through the GitHub Copilot usage metrics API.

Understanding GitHub Repository Insights

Repository insights is available under the Insights tab of a GitHub repository. It provides a repository-level view of pull request activity and Copilot code review results.

To access it, open an organization-owned repository and follow these steps:

  1. Open the repository on GitHub.

  2. Select the Insights tab below the repository name.

  3. Open Repository insights.

  4. Review the Pull requests section and the Copilot code review section.

The Pull requests section provides information about pull request activity, including the number of pull requests opened and merged and the median time to merge.

The Copilot code review section focuses on what happens after Copilot reviews a pull request. It provides summary metrics, addressed feedback rates, comment categories, and breakdowns based on severity and review effort.

A user with read access to the repository can view Repository insights. However, the Copilot code review section requires the organization to enable both the Copilot usage metrics policy and the Copilot code review policy.

Understanding the Main Copilot Code Review Metrics

Repository insights provides four important summary signals. Each one answers a different question about how Copilot code review is being used.

Overall Address Rate

The overall address rate measures the percentage of evaluated Copilot review comments that developers acted on.

The calculation is:

Code
Address Rate =
    (Total Addressed Comments / Total Evaluated Comments) * 100

For example, assume Copilot generated 200 review comments across merged pull requests. After evaluation, developers addressed 150 of those comments.

The address rate is:

Code
(150 / 200) * 100 = 75%

This means developers acted on 75% of the evaluated feedback.

An addressed comment does not necessarily mean that the developer applied the original suggestion. GitHub considers feedback addressed when a developer applies the suggestion, asks Copilot to make the fix, pushes a manual or agent-generated fix, or explicitly accepts the feedback and defers the fix to a later pull request.

This distinction is important because developers often make changes in different ways. Counting only applied suggestions would miss many cases where the feedback was handled successfully.

High-Severity Address Rate

Not every review comment has the same importance. A security concern or a serious bug deserves more attention than a minor documentation suggestion.

The high-severity address rate measures the percentage of evaluated high-severity comments that developers addressed.

For example, if Copilot identified 20 high-severity issues and developers acted on 18, the rate would be:

Code
(18 / 20) * 100 = 90%

This metric helps teams investigate important feedback that developers did not address. A low rate does not automatically mean that developers ignored valid issues. The team should inspect the actual comments and understand why they were not acted on.

Pull Requests Without a Later Human Change Request

This metric counts merged pull requests reviewed by Copilot that did not receive a human review requesting changes after Copilot's first review.

It helps teams understand how often human reviewers subsequently request changes after Copilot has reviewed the pull request.

However, it should not be treated as proof that Copilot found every problem or that the pull request contains defect-free code. Human review remains an important part of the development process.

Merged Pull Requests Without Copilot Review

This metric identifies merged pull requests that were not reviewed by Copilot.

For example, if a repository merged 100 pull requests during the reporting period and Copilot reviewed 80 of them, then 20 were merged without Copilot review.

This information helps teams identify potential review coverage gaps. However, not every pull request needs Copilot review. Documentation-only changes, automated dependency updates, and other low-risk changes may follow different review rules.

Exploring Review Feedback by Severity and Category

Summary metrics provide a useful overview, but they do not explain which types of feedback developers are acting on.

Repository insights includes breakdowns that help teams investigate review outcomes in more detail.

The severity breakdown groups feedback into High, Medium, and Low. Teams can compare these groups to understand whether developers are addressing important findings consistently.

The review effort breakdown compares outcomes for reviews using Lite, Balanced, and Max effort levels. When Adaptive selects an effort level, the result is included under the effort level selected for that review.

The customization breakdown shows outcomes associated with custom instructions, agent skills, MCP servers, and reviews without customization.

These breakdowns can help a team investigate whether its repository instructions or review configuration need improvement. However, a higher address rate for one review effort or customization group does not prove that the configuration caused better results. Different pull requests can contain different types of changes and risks.

Repository insights also displays addressed comments by category. Examples include Bug, Documentation, Security, Concurrency, and Performance.

This chart ranks categories by the number of addressed comments, not by their individual address rates. A category with a larger bar does not necessarily have a higher percentage of addressed feedback.

Retrieving Repository Review Metrics Through the API

The Repository insights page is useful for everyday analysis. However, engineering teams may also want to store the results in an internal dashboard, compare multiple repositories, or prepare custom reports.

GitHub provides repository-level reports through the Copilot usage metrics REST API.

Two important endpoints are available:

Code
GET /orgs/{org}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD
Code
GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD

The organization endpoint retrieves repository-level data for an organization. The enterprise endpoint provides the corresponding report at the enterprise level.

These endpoints return download links for the report rather than placing the complete report directly in the response. The downloaded report contains repository-level records for the requested day.

The following example uses GitHub CLI to request an organization-level report.

Code
gh api \
  "/orgs/ORG_NAME/copilot/metrics/reports/repos-1-day?day=2026-11-25" \
  -H "Accept: application/vnd.github+json" \
  --jq '.download_links[0]'

Replace ORG_NAME with the organization name and use a reporting date for which data is available.

The command returns a temporary download link. You can use that link to download the report:

PowerShell
REPORT_URL=$(gh api \
  "/orgs/ORG_NAME/copilot/metrics/reports/repos-1-day?day=2026-11-25" \
  -H "Accept: application/vnd.github+json" \
  --jq '.download_links[0]')

curl -L "$REPORT_URL" -o repository-report.ndjson

The downloaded file contains newline-delimited JSON records. Each record represents a repository that had pull request activity on the requested day.

Access requires the appropriate organization or enterprise Copilot metrics permissions. The Copilot usage metrics policy must also be enabled.

Calculating the Address Rate From Repository Reports

The repository-level report includes a copilot_code_review object containing the evaluated and addressed comment counts.

For example, a simplified record might look like this:

JSON
{
  "day": "2026-11-25",
  "repo_owner_name": "contoso",
  "repo_name": "inventory-api",
  "copilot_code_review": {
    "total_comments_evaluated": 40,
    "total_comments_addressed": 32,
    "total_merged_no_human_change_request_after_review": 12
  },
  "pull_requests": {
    "total_merged": 20,
    "total_merged_reviewed_by_copilot": 15
  }
}

This example contains 40 evaluated comments and 32 addressed comments. The address rate is 80%.

A small Python script can read the NDJSON file and calculate the address rate for each repository.

Python
import json

with open("repository-report.ndjson", "r", encoding="utf-8") as file:
    for line in file:
        record = json.loads(line)

        review = record.get("copilot_code_review", {})

        evaluated = review.get("total_comments_evaluated", 0)
        addressed = review.get("total_comments_addressed", 0)

        if evaluated == 0:
            address_rate = None
        else:
            address_rate = (addressed / evaluated) * 100

        repository = (
            f"{record['repo_owner_name']}/"
            f"{record['repo_name']}"
        )

        print(
            f"Repository: {repository}, "
            f"Evaluated: {evaluated}, "
            f"Addressed: {addressed}, "
            f"Address Rate: {address_rate}"
        )

The script reads each repository record, extracts the review counts, and calculates the address rate. When there are no evaluated comments, it leaves the rate as None rather than reporting zero percent.

For a production dashboard covering multiple days, do not calculate the overall rate by averaging daily percentages. Instead, add the addressed counts and evaluated counts across the reporting period, then divide the totals.

For example:

Code
Day 1: 8 addressed / 10 evaluated
Day 2: 45 addressed / 50 evaluated

Total Addressed = 53
Total Evaluated = 60

Overall Rate = (53 / 60) * 100
             = 88.33%

A simple average of the daily rates would produce a different result because the two days have different numbers of evaluated comments.

Using Metrics to Improve the Code Review Process

The main benefit of Repository insights is not simply collecting numbers. It is using those numbers to identify practical improvements.

For example, suppose a repository has a high overall address rate but a much lower rate for security-related feedback. The team can review the unaddressed security comments and determine whether Copilot is producing irrelevant suggestions or developers need clearer guidance about security requirements.

Another repository might have a large number of merged pull requests without Copilot review. The team can investigate whether automatic review is enabled, whether the repository follows different review rules, or whether certain pull request types are intentionally excluded.

Teams can also compare review outcomes across repositories. If one repository consistently has a lower address rate, its maintainers can inspect the comments and review configuration before making changes.

The goal should be to improve the quality and usefulness of the review process, not to achieve an arbitrary percentage.

Common Mistakes When Interpreting the Metrics

One common mistake is treating the address rate as a direct measure of code quality. An addressed comment only indicates that developers acted on the feedback according to GitHub's evaluation. It does not prove that the resulting code is correct or that all defects were found.

Another mistake is confusing suggestion application counts with addressed comments. Suggestion metrics count ready-to-apply code suggestions that developers applied. Addressed-comment metrics include other ways of responding to feedback, such as manual fixes and asking Copilot to make a change.

Teams should also avoid treating missing data as zero activity. A waiting or stale-data state means the report is not yet fully available. Similarly, a rate with no evaluated comments has no denominator and should not be interpreted as a measured zero percent.

Finally, remember that comment outcomes are attributed to the day the pull request merges, not the day Copilot originally posted the comment. This matters when comparing review activity with merge activity.

Best Practices for Production Teams

Start by reviewing the repository's current pull request activity and Copilot review coverage. Use the reporting period displayed in Repository insights rather than assuming that the latest calendar day is already available.

Investigate high-severity unaddressed feedback before focusing on smaller categories. Review actual comments instead of relying only on percentages.

When building custom dashboards, preserve the underlying addressed and evaluated counts alongside the calculated rate. This makes it easier to understand whether a percentage is based on a small or large sample.

Use the API to aggregate data across repositories only when the reporting permissions and data requirements are understood. Also account for temporary download links, missing activity records, and delayed reporting.

Most importantly, keep human review, automated tests, security checks, and other quality controls in place. Copilot review metrics are useful signals for improving a development process, not replacements for existing engineering safeguards.

Summary

GitHub Repository insights provides a practical way to understand how developers respond to Copilot code review feedback. It combines pull request activity with addressed comments, high-severity feedback, review coverage, and category-based analysis.

For teams that need more detailed reporting, the Copilot usage metrics API provides daily repository-level data that can be processed and stored in custom dashboards.

By looking beyond the number of reviews and suggestions, development teams can identify where Copilot feedback is useful, where review coverage is missing, and which parts of their review process need attention. The most valuable result is not a high metric by itself, but a more reliable and effective code review process.