Newshot

12月1日起,使用报告将包含用户ID列

AI summary

自2026年12月1日起,包含用户名列的使用报告将在其旁边新增一个user_id列,用户名之后的每一列都会右移一位。此变更适用于详细使用报告、AI使用报告和高级请求使用报告(包括通过GitHub REST API创建的导出),汇总使用报告不受影响,适用于所有GitHub Enterprise Cloud账户类型以及GitHub Team上的独立组织。

Translation(model translation, not the source's own text)

文章标题:自 12 月 1 日起,使用量报告将包含 user ID 列

正文:

自 2026 年 12 月 1 日起,包含 username 列的使用量报告也将在其旁边包含一个 user_id 列。username 之后的每一列都将向右移动一个位置。

此变更适用于详细使用量报告、AI 使用量报告和 premium request 使用量报告,包括你使用 GitHub REST API 创建的导出文件。汇总使用量报告不会变化。

这些变更适用于所有 GitHub Enterprise Cloud 账户类型以及 GitHub Team 上的独立组织。

你需要做什么

如果你的脚本或工具按列位置读取这些报告,请在 12 月 1 日之前将它们改为按表头名称读取列。

变更内容

user_id 列包含产生使用量的账户的 ID,包括 bot 账户。对于未关联到账户的使用量,此列为空。借助此列,你可以:

  • 识别已删除账户产生的使用量,这些账户目前的 username 为空。
  • 在用户更改 username 后继续追踪其使用量。
  • 将报告行与审计日志中的事件匹配。

来自不同已删除账户的使用量也将分别显示在不同行中,而不是合并到一行且 username 为空。我们将以相同方式计算金额,但由于我们对每一行分别进行舍入,你从报告中加总得到的总计可能在最后几位小数上略有差异。

如需了解更多信息,请参阅 Usage report fields。

Only about 739 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

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 ↗