使用报告现在包含用户 ID 列
Usage reports now include a user ID column
导读
GitHub 的使用报告在 username 列旁新增了 user_id 列,用于标识产生用量的账户,包括机器人账户;不归属账户的用量该列为空。该改动适用于详细使用报告、AI 使用报告和高级请求使用报告(含通过 REST API 创建的导出),不适用于摘要使用报告,覆盖所有 GitHub Enterprise Cloud 账户类型和 GitHub Team 上的独立组织。
正在把原文翻译成中文,长文需要一两分钟;先显示原文。
Improvement
December 2, 20261 minute read
Usage reports that include a username column now include a user_id column next to it. The column contains the ID of the account that generated the usage, including bot accounts, and it's empty for usage that isn't tied to an account. You can use it to:
- Identify usage from deleted accounts, which have an empty
username. - Follow a user's usage after they change their username.
- Match report rows to events in your audit log.
This change applies to the detailed usage report, the AI usage report, and the premium request usage report, including exports you create with the GitHub REST API. The summarized usage report hasn't changed.
These changes apply to all GitHub Enterprise Cloud account types and standalone organizations on GitHub Team.
Every column after username has moved one position to the right. If your scripts or tools read these reports by column position, update them to read columns by header name.
Usage from different deleted accounts now appears on separate rows instead of combined in one row with an empty username. We calculate amounts the same way, but because we round each row separately, totals you add up from the report may differ slightly in the last decimal places.
To learn more, see Usage report fields.
出处
- S 官方GitHub Changelog · RSS阅读原文 ↗
Usage reports now include a user ID column