Hot AI News

Copilot metrics now show how many pull requests each developer’s agent wrote

Admins can now see, user by user, how many pull requests were created, reviewed and merged, and how much of that work came from Copilot's agent or its reviewer.

Copilot metrics now show how many pull requests each developer’s agent wrote
Image: GitHub / Microsoft

Microsoft’s GitHub has added per-user pull request activity to the Copilot usage metrics API. Admins can now see how many pull requests each developer created, reviewed and merged, and how many of them came from Copilot’s cloud agent or went through Copilot code review.

Seven new counters on every user row

The change applies to the user-level 1-day and 28-day reports for enterprises and organizations. Each user row now carries a pull_requests object with seven fields. According to GitHub, they cover:

GitHub pull request Overview showing a Member badge and requested reviewer team details on hover
Image: GitHub / Microsoft
  • total_created and total_created_by_copilot: pull requests the user opened that day, and the share of them that Copilot cloud agent produced for that user.
  • total_reviewed: reviews the user did on other people’s pull requests. Reviews of their own pull requests don’t count.
  • total_reviewed_by_copilot: the user’s own pull requests that Copilot code review examined that day.
  • total_merged, total_merged_created_by_copilot and total_merged_reviewed_by_copilot: the user’s merged pull requests, split into those the agent wrote and those Copilot reviewed.

The field names match the pull_requests section that already exists in the aggregate reports. Until now, GitHub only offered pull request numbers at the enterprise, organization and repository level. Getting a per-person view meant combining the results of several API calls.

Access works the same way as for the rest of the metrics. Enterprise owners, billing managers and organization owners can read the reports, along with anyone whose custom role includes the “View Organization Copilot Metrics” or “View Enterprise Copilot Metrics” permission. An admin also has to enable the Copilot usage metrics policy. According to GitHub’s REST documentation, the endpoints are /orgs/{org}/copilot/metrics/reports/users-1-day and users-28-day/latest, plus matching paths under /enterprises/{enterprise}. They don’t return the data directly. Instead they return signed download links that expire after a limited time.

Copilot metrics now show how many pull requests each developer's agent wrote
Image: Microsoft
Advertisements

Agent work is credited to whoever started it

A pull request that Copilot cloud agent opens is counted for the person who launched the agent. Pull requests from any other bot account aren’t attributed to anyone. The reports also list people only on days they used Copilot. Developers who never touch the assistant are missing from the per-user data, even if they merged a lot of code. In GitHub’s words, “User totals can be lower than the enterprise or organization totals.”

Reviews can also be counted more than once. A pull request with two reviewers counts once for each, so adding up total_reviewed across users can give a higher number than the aggregate report. Users with no pull request activity on a given day show zeros. Median time to merge is still available only in the enterprise, organization and repository reports.

Copilot metrics now show how many pull requests each developer's agent wrote
Image: Microsoft

Engineering managers gain a per-developer lens, with gaps

The main users of the new fields will be platform teams and engineering managers who build their own dashboards. They can now see whether the developers who hand the most work to the cloud agent also merge more pull requests. They can also see how often Copilot code review is part of what actually ships. Before this change, they could only see that split for a whole organization or repository.

The timing matters for budgets. As aiholics reported in November, Copilot code review billing will default to the organization from December 30 unless admins opt out. Per-user counts of Copilot-reviewed and Copilot-merged pull requests give finance and engineering leads a way to compare that spending with actual activity, person by person. For background on how these reviews work and what they cost, see aiholics’ explainer on AI code review.

Several limits apply to that kind of analysis. GitHub’s metrics documentation says data for a day becomes available within two full UTC days after that day ends. The REST reference says reports start from October 10, 2025, and historical data goes back at most one year from the current date. Teams that want longer trends need to store the exports themselves, which the documentation describes as NDJSON files. The same documentation warns that organization metrics can overlap, so admins shouldn’t add up organization totals to get an enterprise total.

Throughput numbers say nothing about quality on their own. The announcement does not show that pull requests created or reviewed by Copilot are better or worse than others. Because the reports skip developers on days they didn’t use Copilot, comparing Copilot users with non-users is not possible from this data alone. The changelog also gives no price for the reports. They are part of the existing Copilot usage metrics API for enterprises and organizations, and the per-user fields are available now in both report types.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Leo MartinsAI Tools, Prompts & Practical AI Expert

Leo Martins is the AI Tools & Practical AI Expert at Aiholics, focused on helping readers use artificial intelligence to improve productivity, creativity and everyday work.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like