Copilot code review comment types now in usage metrics API
To help you understand the activity generated by Copilot code review users, the Copilot usage metrics API now breaks down Copilot code review suggestions by comment type. A new copilot_suggestions_by_comment_type array is available under pull_requests in both enterprise and organization reports.
What’s new
For each Copilot code review suggestion (i.e., a line-anchored review comment generated automatically by Copilot), the new array reports aggregated counts by the comment types Copilot assigned to the suggestion (e.g., security or bug_risk):
comment_type: The category Copilot assigned to the review suggestion.total_copilot_suggestions: The total number of Copilot code review suggestions of that comment type posted during the reporting period.total_copilot_applied_suggestions: The number of those suggestions that were applied by a developer.
The breakdown is available in single-day and 28-day rolling window reports at both the enterprise and organization levels. You cannot currently drill down to the repository level, though this is being investigated for the future.
Why this matters
- Understand what Copilot is catching: See which categories of issues Copilot code review surfaces most often in your pull requests.
- Measure which feedback developers act on: Compare suggestion volume to applied suggestions per type to see where Copilot code review delivers the most value.
- Complete the code review picture: Combined with the existing Copilot code review user counts and pull request metrics, you now have visibility into not just how much Copilot code review is used, but what kinds of feedback it produces and how often it’s adopted.
Important notes
- These metrics are available to enterprise administrators and organization owners who have access to Copilot usage metrics through the REST API.
- Only suggestions posted by Copilot code review are included. The breakdown reflects the comment type Copilot assigned to each suggestion at the time it was posted.
Join the discussion within GitHub Community.