AIFeed

Copilot 使用指标 API 新增用户拉取请求活动

AI summary

Copilot 使用指标 API 中面向用户级的 1 天和 28 天报告现已包含企业和组织的拉取请求活动。每个用户行新增 pull_requests 对象,显示该用户创建、审查和合并的拉取请求数量,以及其中有多少工作涉及 Copilot 云代理和 Copilot 代码审查。

Translation(model translation, not the source's own text)
featured-v3-improvements
featured-v3-improvements

Copilot 使用指标 API 中的用户级 1 天和 28 天报告现已包含企业和组织的拉取请求活动。每个用户行包含一个 pull_requests 对象,显示该用户创建、审查和合并了多少拉取请求,以及其中有多少工作涉及 Copilot cloud agent 和 Copilot code review。

新增内容

  • total_created:用户当天创建的拉取请求。由 Copilot cloud agent 创建的拉取请求计入启动该 agent 的用户。
  • total_created_by_copilot:total_created 中由 Copilot cloud agent 为该用户创建的子集。
  • total_reviewed:用户当天审查的拉取请求,不包括自己创建的。
  • total_reviewed_by_copilot:用户当天由 Copilot code review 审查的拉取请求。
  • total_merged:用户当天合并的拉取请求。
  • total_merged_created_by_copilot:total_merged 中由 Copilot cloud agent 创建的子集。
  • total_merged_reviewed_by_copilot:total_merged 中由 Copilot code review 审查的子集。

为何重要

拉取请求指标此前仅在企业、组织和仓库的汇总报告中提供。按用户统计的计数让你可以跨用户和团队比较拉取请求吞吐量和 Copilot 辅助的工作量,而无需合并来自不同 API 调用的数据。

重要说明

  • 范围:企业和组织的用户级 1 天和 28 天报告。字段名称与汇总报告中现有的 pull_requests 部分一致。
  • 访问权限:面向企业所有者、账单管理员、组织所有者,以及任何拥有授予“View Organization Copilot Metrics”或“View Enterprise Copilot Metrics”权限的自定义角色的用户。必须启用 Copilot 使用指标策略。
  • 仅限 Copilot 活跃用户:用户仅在其使用 Copilot 的日期出现在这些报告中。除 Copilot cloud agent 之外的机器人账户的拉取请求不会归属到用户,而 Copilot cloud agent 的拉取请求归属到启动该 agent 的用户。用户总计可能低于企业或组织总计。
  • 审查:一个有两位审查者的拉取请求对每位审查者各计一次,因此各用户的 total_reviewed 之和可能超过汇总值。
  • 无活动:在给定日期没有拉取请求活动的用户显示为零。
  • 不包含:合并中位时间仅在企业、组织和仓库报告中提供。

要开始使用,请参阅 Copilot 使用指标的 REST API 端点。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗