Copilot 代码审查支持 API,并启用新的默认审查强度
英文标题:Copilot code review: API support and new default effort level
GitHub Copilot 代码审查现可通过 REST 和 GraphQL API 发起请求,并可为每次请求单独设置审查强度。审查强度默认值已从 Default 调整为 Balanced,适用于使用 Copilot 代码审查的新建和现有仓库及组织。该变更于 2026 年 9 月 28 日生效,此前明确选择 Lite 的用户将保留原有设置。新能力使开发者能够将 Copilot 代码审查接入自有脚本、工作流和内部工具,并面向 Copilot Pro、Pro+、Max、Business 和 Enterprise 计划全面可用。
112.2 KB
17.2 KB
182.1 KB
中文
现在,你可以通过 REST 和 GraphQL API 请求 GitHub Copilot 进行代码审查,并为每次请求设置审查强度。Balanced 现也成为默认的审查强度级别。这些变更现已向 Copilot Pro、Pro+、Max、Business 和 Enterprise 计划全面推出。
现在,你可以使用受支持的 REST 和 GraphQL API 向 Copilot 发起审查请求。发起请求时,还可以选择为该次审查设置审查强度级别。
这使你能够将 Copilot 代码审查集成到自己的脚本、工作流和内部工具中,让审查可从团队已经在使用的系统中发起。
如 2026 年 8 月 28 日所宣布,使用 Copilot 代码审查的新建及现有仓库和组织,其 Default 审查强度级别现在将使用 Balanced。如果你此前在设置中明确选择了 Lite,该选择将得到保留。这项变更已于 2026 年 9 月 28 日生效。
如果你更偏好 Lite,或希望试用可用选项,可以在你所管理的层级中,将审查强度从 Default 更改为 Lite:
- 企业: 在企业设置中,前往 AI controls → Agents → Copilot code review。
- 组织: 在组织设置中,前往 Copilot → Code review。
- 仓库: 在仓库设置中,前往 Copilot → Code review。
- 个人: 点击个人资料图片,然后前往 Copilot settings → Copilot → Code review。
每个层级均可覆盖其上一级的设置。有关分步说明,请参阅配置 GitHub Copilot 代码审查。
English / 原文
You can now request a GitHub Copilot code review through the REST and GraphQL APIs and set the review effort level for each request. Balanced is also now the default review effort level. These changes are generally available to Copilot Pro, Pro+, Max, Business, and Enterprise plans.
You can now request a review from Copilot using the supported REST and GraphQL APIs. When you make a request, you can optionally set the review effort level for that review.
This lets you bring Copilot code review into your own scripts, workflows, and internal tools, so reviews can start from the systems your team already uses.
As announced on August 28, 2026, the Default review effort level now uses Balanced for new and existing repositories and organizations using Copilot code review. If you explicitly selected Lite in your settings, that selection was respected. This change took effect September 28, 2026.
If you prefer Lite or want to try out the options available to you, you can change the review effort level from Default to Lite at the level you manage:
- Enterprise: In your enterprise settings, go to AI controls → Agents → Copilot code review.
- Organization: In your organization settings, go to Copilot → Code review.
- Repository: In your repository settings, go to Copilot → Code review.
- Personal: Click your profile picture, then go to Copilot settings → Copilot → Code review.
Each level can override the one above it. For step-by-step instructions, see Configuring code review by GitHub Copilot.