{"slug": "copilot-usage-metrics-api-adds-user-pull-request-activity", "title": "Copilot usage metrics API adds user pull request activity", "summary": "GitHub's Copilot usage metrics API now reports pull request activity per user in its 1-day and 28-day reports for enterprises and organizations, adding a `pull_requests` object with fields including `total_created`, `total_created_by_copilot`, `total_reviewed`, `total_reviewed_by_copilot`, `total_merged`, `total_merged_created_by_copilot` and `total_merged_reviewed_by_copilot`. GitHub said the per-user counts let teams compare pull request throughput and Copilot-assisted work across users and teams without combining data from separate API calls, since pull request metrics were previously available only in aggregate enterprise, organization and repository reports. Access is limited to enterprise owners and billing managers, organization owners, and custom roles granting the \"View Organization Copilot Metrics\" or \"View Enterprise Copilot Metrics\" permission, with the Copilot usage metrics policy enabled; users appear only on days they used Copilot, and median time to merge remains available only in the aggregate reports.", "body_md": "# Copilot usage metrics API adds user pull request activity\n\nThe user-level 1-day and 28-day reports in the Copilot usage metrics API now include pull request activity for enterprises and organizations. Each user row includes a `pull_requests` object showing how many pull requests that user created, reviewed, and merged, and how much of that work involved Copilot cloud agent and Copilot code review.\n\n## [What's new](#whats-new)\n\n- `total_created` : Pull requests the user created on the day. Pull requests created by Copilot cloud agent count for the user who started the agent.\n- `total_created_by_copilot` : The subset of`total_created` that Copilot cloud agent created for the user.\n- `total_reviewed` : Pull requests the user reviewed on the day, not counting their own.\n- `total_reviewed_by_copilot` : The user's pull requests that were reviewed by Copilot code review on the day.\n- `total_merged` : The user's pull requests merged on the day.\n- `total_merged_created_by_copilot` : The subset of`total_merged` that Copilot cloud agent created.\n- `total_merged_reviewed_by_copilot` : The subset of`total_merged` that was reviewed by Copilot code review.\n\n## [Why this matters](#why-this-matters)\n\nPull request metrics were only available in aggregate enterprise, organization, and repository reports. Per-user counts let you compare pull request throughput and Copilot-assisted work across users and teams without combining data from separate API calls.\n\n## [Important notes](#important-notes)\n\n- **Scope:** User-level 1-day and 28-day reports for enterprises and organizations. Field names match the existing`pull_requests` section in the aggregate reports.\n- **Access:** Available to enterprise owners and billing managers, organization owners, and anyone with a custom role that grants the \"View Organization Copilot Metrics\" or \"View Enterprise Copilot Metrics\" permission. The Copilot usage metrics policy must be enabled.\n- **Copilot-active users only:** Users appear in these reports only on days they used Copilot. Pull requests from bot accounts other than Copilot cloud agent aren't attributed to a user, while Copilot cloud agent pull requests are attributed to the user who started the agent. User totals can be lower than the enterprise or organization totals.\n- **Reviews:** A pull request with two reviewers counts once for each, so the sum of`total_reviewed` across users can exceed the aggregate.\n- **No activity:** Users with no pull request activity on a given day show zeros.\n- **Not included:** Median time to merge is available only in enterprise, organization, and repository reports.\n\nTo get started, see [REST API endpoints for Copilot usage metrics](https://docs.github.com/rest/copilot/copilot-usage-metrics).", "url": "https://wpnews.pro/news/copilot-usage-metrics-api-adds-user-pull-request-activity", "canonical_source": "https://blog.github.com/changelog/2026-12-04-copilot-usage-metrics-api-adds-pull-request-activity-to-user-reports/", "published_at": "2026-12-04 22:38:42+00:00", "updated_at": "2026-12-04 23:15:00.021587+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-products", "mlops"], "entities": ["GitHub", "Copilot", "Copilot cloud agent", "Copilot code review", "Copilot usage metrics API"], "also_reported_by": [], "takeaway": "The Copilot usage metrics API's user-level 1-day and 28-day reports now return a `pull_requests` object per user with seven fields, including `total_created_by_copilot` and `total_merged_reviewed_by_copilot`, so Copilot-assisted PR work can be measured per user without joining separate aggregate API", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/copilot-usage-metrics-api-adds-user-pull-request-activity", "markdown": "https://wpnews.pro/news/copilot-usage-metrics-api-adds-user-pull-request-activity.md", "text": "https://wpnews.pro/news/copilot-usage-metrics-api-adds-user-pull-request-activity.txt", "jsonld": "https://wpnews.pro/news/copilot-usage-metrics-api-adds-user-pull-request-activity.jsonld"}}