Copilot usage metrics API adds user pull request activity
GitHub added a seven-field pullrequests object to 1-day and 28-day user reports in the Copilot usage metrics API for enterprises on December 4, 2026.
By Dillip Chowdary • Dec 06, 2026 • Source: GitHub Changelog

At a glance
- Product
- GitHub Copilot usage metrics API
- Release date
- December 4, 2026
- Report windows
- User-level 1-day and 28-day reports
- Schema addition
- pull_requests object with seven fields
- Access roles
- Enterprise/org owners, billing managers, custom roles
- Excluded metric
- Median time to merge (aggregate reports only)
In this post
GitHub expanded the Copilot usage metrics API on December 4, 2026, adding pull request activity to the user-level 1-day and 28-day reports for enterprises and organizations. According to GitHub Changelog's report, each user row in those reports now includes a pull_requests object detailing how many pull requests that developer created, reviewed, and merged, alongside how much of that work involved Copilot cloud agent and Copilot code review.
This article breaks down the seven fields inside the new user-level pull_requests object, explains how the update simplifies reporting compared to aggregate-only endpoints, and outlines the permission and policy requirements needed to query the data. It is written for enterprise owners, organization owners, billing managers, and engineering leaders who track Copilot adoption and pull request throughput across teams.
01User pull request objects in daily reports
The update targets the user-level 1-day and 28-day report endpoints within the Copilot usage metrics API for both enterprises and organizations. Each user row returned by these endpoints now carries a pull_requests object, giving API consumers per-developer visibility on a daily basis rather than limiting pull request counts to higher-level rollups.
Field names inside the new user-level pull_requests object match the existing pull_requests section already used in GitHub's aggregate reports. Teams that already parse the aggregate schema can reuse the same field names when ingesting user-level records from the REST API endpoints for Copilot usage metrics.
| Report scope | Time windows | Pull request object | Median time to merge |
|---|---|---|---|
| User-level | 1-day and 28-day | Included per user row | Not included |
| Enterprise, organization, repository | Aggregate reports | Existing pull_requests section | Included |
02Seven fields tracking creation, review, and merges
Two fields in the pull_requests object track pull request creation for each developer. The total_created field counts all pull requests the user created on that day, and any pull requests created by Copilot cloud agent are counted under the user who started the agent. The total_created_by_copilot field isolates the subset of total_created that Copilot cloud agent created for that user.
Two additional fields capture code review activity involving both the developer and Copilot code review. The total_reviewed field records how many pull requests the user reviewed on that day, excluding their own pull requests. Meanwhile, total_reviewed_by_copilot counts the user's own pull requests that were reviewed by Copilot code review on that day.
Three merge-related fields complete the object by connecting merged pull requests to AI assistance. The total_merged field tracks the user's pull requests merged on that day, while total_merged_created_by_copilot records the subset created by Copilot cloud agent and total_merged_reviewed_by_copilot records the subset reviewed by Copilot code review.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Per-user throughput without separate API calls
Previously, pull request metrics in the Copilot usage metrics API were restricted to aggregate enterprise, organization, and repository reports. Engineering and platform teams could see overall volume at those levels, but they could not inspect individual pull request activity directly inside the user-level 1-day and 28-day API responses.
With per-user counts now embedded in each user row, organizations can compare pull request throughput across users and teams directly. The same payload also surfaces Copilot-assisted creation and review work alongside standard developer counts, eliminating the need to combine data from separate API calls to build team-level comparisons.
04Role permissions and Copilot metrics policy access
Access to the updated user-level 1-day and 28-day reports is restricted to specific administrative roles across enterprises and organizations. Enterprise owners, enterprise billing managers, and organization owners can query the endpoints, ensuring that individual activity metrics remain confined to authorized governance and billing roles.
GitHub also supports custom roles for organizations and enterprises that delegate metrics access without granting full ownership. Any user assigned a custom role that grants either the View Organization Copilot Metrics permission or the View Enterprise Copilot Metrics permission can retrieve the reports, provided the Copilot usage metrics policy is enabled.
05Active-day attribution and aggregate report exclusions
Users appear in the user-level 1-day and 28-day reports only on days when they actively used Copilot, and any user with no pull request activity on an active day shows zeros across the pull_requests fields. Pull requests opened by bot accounts other than Copilot cloud agent are not attributed to any user, whereas Copilot cloud agent pull requests are attributed to the user who started the agent.
Because inactive-Copilot days and non-Copilot bot pull requests are excluded, summing user-level totals can produce lower numbers than enterprise or organization aggregate totals. Conversely, a pull request with two reviewers counts once for each reviewer, meaning the sum of total_reviewed across individual users can exceed the aggregate figure.
Note: Median time to merge is not included in the user-level 1-day and 28-day reports and remains available only in enterprise, organization, and repository aggregate reports.
Frequently asked questions
Which Copilot usage metrics API reports include the new pull_requests object?
The pull_requests object is included in the user-level 1-day and 28-day reports for enterprises and organizations, matching the field names in existing aggregate reports.
How are pull requests created by Copilot cloud agent attributed in user reports?
Pull requests created by Copilot cloud agent are attributed to the user who started the agent and counted in both total_created and total_created_by_copilot, whereas pull requests from other bot accounts are not attributed to a user.
Who can access the user-level pull request metrics in the API?
Access is available to enterprise owners, enterprise billing managers, organization owners, and users with a custom role granting the View Organization Copilot Metrics or View Enterprise Copilot Metrics permission, provided the Copilot usage metrics policy is enabled.
Why can summed user totals differ from enterprise or organization aggregate totals?
User totals can be lower because users only appear on days they used Copilot and non-Copilot bot pull requests are excluded, while the sum of total_reviewed can exceed the aggregate because a pull request with two reviewers counts once for each reviewer.
Is median time to merge included in the user-level reports?
No, median time to merge is excluded from user-level reports and remains available only in enterprise, organization, and repository reports.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement