GitHub Copilot Usage Metrics API: Code Review Metrics

GitHub's Copilot usage metrics API now tracks code review impact with two new metrics: merged PRs reviewed by Copilot and median time-to-merge for reviewed PRs.

GitHub Copilot Usage Metrics API: Code Review Metrics

TL;DR

  • Two new metrics track Copilot code review impact: merged PRs reviewed by Copilot and median time-to-merge for reviewed PRs
  • Complements existing Copilot-created PR metrics for end-to-end visibility
  • Available at enterprise and organization levels in single-day and 28-day rolling windows

New

  • total_merged_reviewed_by_copilot — Count of pull requests that were both merged and reviewed by Copilot code review during the reporting period.
  • median_minutes_to_merge_copilot_reviewed — Median time in minutes from PR creation to merge for pull requests that received a Copilot code review.

Why This Matters

  • Compare time-to-merge for Copilot-reviewed PRs against your baseline to measure whether automated reviews accelerate merges.
  • Track code review adoption across your enterprise or organization.
  • Combined with existing Copilot-created PR metrics, you now have full visibility into Copilot's role across the entire PR lifecycle—authoring, review, and merge.

Important Notes

  • Available to enterprise administrators and organization owners with access to Copilot usage metrics.
  • Only PRs that received a Copilot code review are included; Copilot-created PRs are tracked separately in existing fields.

Access the metrics via the Copilot usage metrics API.

Source: GitHub Changelog