Knowledge File / AI小生意项目库
GitHub Copilot仓库级使用指标现已全面可用
GitHub 发布仓库级 Copilot 使用指标 API,可查看每日每个仓库的 PR 活动,包括由 Copilot 创建、合并和审查的 PR。
SOURCE / AI小生意项目库
MIN / 9
ACCESS / 会员
POST / 2026-07-18 06:05:18
原贴
查看原文原文
The Copilot usage metrics REST API now reports repository-level activity. Two new endpoints return a daily, per-repository breakdown of pull request activity for Copilot coding agent and Copilot code review. They do this for both enterprise and organization reports. Two new endpoints return a per-repository report for a single day: GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD GET /orgs/{org}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD Each response returns the following activity: Pull requests created and merged by Copilot coding agent. Pull requests reviewed by Copilot code review, with suggestion counts broken down by comment type. Until now, Copilot usage metrics stopped at the organization and user level. Repository-level reporting lets you see exactly where Copilot coding agent and Copilot code review are driving pull request activity across your codebase. This is the foundation for repository insights and AI-readiness reporting, so you can target enablement at the repositories that stand to benefit most. Enterprise owners and billing managers, organization owners, and anyone with a custom organization or enterprise role that grants the View Copilot Metrics permission can access these reports. The Copilot usage metrics policy must be enabled to support this functionality. Visit the Copilot usage metrics API documentation to get started.
中文翻译
Copilot 使用指标 REST API 现在可报告仓库级活动。两个新端点返回 Copilot 编码代理和 Copilot 代码审查的每日、每仓库 PR 活动细分。它们同时支持企业和组织报告。两个新端点返回单日的每仓库报告:GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD 和 GET /orgs/{org}/copilot/metrics/reports/repos-1-day?day=YYYY-MM-DD。每个响应返回以下活动:由 Copilot 编码代理创建和合并的 PR。由 Copilot 代码审查审查的 PR,按评论类型细分的建议计数。到目前为止,Copilot 使用指标止步于组织和用户级别。仓库级报告让您准确了解 Copilot 编码代理和 Copilot 代码审查在代码库中驱动 PR 活动的位置。这是仓库洞察和 AI 就绪报告的基础,因此您可以针对受益最大的仓库进行启用。企业所有者、账单管理员、组织所有者以及任何拥有授予查看 Copilot 指标权限的自定义组织或企业角色的人员都可以访问这些报告。必须启用 Copilot 使用指标策略以支持此功能。访问 Copilot 使用指标 API 文档以开始使用。
核心信息
GitHub 发布仓库级 Copilot 使用指标 API,可查看每日每个仓库的 PR 活动,包括由 Copilot 创建、合并和审查的 PR。
- GitHub 发布仓库级 Copilot 使用指标 API,可查看每日每个仓库的 PR 活动,包括由 Copilot 创建、合并和审查的 PR。
- 原贴提到:The Copilot usage metrics REST API now reports repository-level activity
- 来源:github.blog
试看内容
成为会员查看完整内容
你已经看到了这篇内容的前置整理,剩余深度部分仅对会员开放。
详细解读
信息差价值
参考来源
成为会员查看完整内容