GitHub Copilot Code Review v2026-09-01:新增自动批准 Pull
Copilot code review can now approve pull requests
Copilot now tells you when a pull request is ready to approve, and admins can authorize it to sign off on approval. The ability for Copilot to approve is off by default and configurable at the enterprise, organization, and repository level. The approval assessments will now appear as a part of the overview comment in every Copilot review. This feature is available in public preview to GitHub Copilot Pro, Pro+, Max, Business, and Enterprise plans.
Copilot 现在会告知你何时可以批准拉取请求,管理员也可以授权其签署批准。默认情况下,Copilot 的批准功能是关闭的,并且可以在企业、组织和仓库级别进行配置。批准评估现在将作为每次 Copilot 审查中概览评论的一部分显示。此功能在公共预览阶段面向 GitHub Copilot Pro、Pro+、Max、Business 和 Enterprise 计划开放。
✅ Approval assessments
✅ 批准评估
Every Copilot code review now includes an approval assessment in the overview comment. The assessment signals whether Copilot considers the pull request ready to approve, giving you an at-a-glance read on its judgment alongside its detailed comments.
每次 Copilot 代码审查现在都在概览评论中包含一项批准评估。该评估指示 Copilot 是否认为拉取请求已准备好被批准,让你能够一目了然地了解其判断结果,同时结合其详细评论。
An approval assessment alone does not count toward merge requirements. Copilot’s determination is surfaced so you can decide how to act on it.
单独的批准评估不计入合并要求。Copilot 的判断结果会被展示出来,以便你决定如何据此采取行动。
⚙️ Turning on approvals
⚙️ 开启批准功能
By default, Copilot will not approve pull requests. When enabled, Copilot can submit an approval that counts toward the repository’s required-approvals rule. If new commits are pushed after Copilot approves, its approval is dismissed just like a human reviewer’s, and you can request a new review from Copilot to get a fresh approval.
默认情况下,Copilot 不会批准拉取请求。启用后,Copilot 可以提交计入仓库所需批准规则的批准。如果在 Copilot 批准后推送了新提交,其批准将被撤销,就像人类审查者一样,你可以向 Copilot 请求新的审查以获得全新的批准。
Admins control this behavior at three levels:
管理员在三个级别上控制此行为:
- Enterprise: Admins can leave approvals off for the whole enterprise or let organizations decide.
- Organization: Admins can turn approvals on org-wide, let repository admins decide, enable it for specific repositories, or turn it off org-wide.
- Repository: Admins can turn approvals on or off, and choose which file paths Copilot is allowed to approve.
- 企业:管理员可以为整个企业保持批准功能关闭,或让组织自行决定。
- 组织:管理员可以在全组织范围内开启批准功能,让仓库管理员自行决定,为特定仓库启用它,或在整个组织范围内关闭它。
- 仓库:管理员可以开启或关闭批准功能,并选择允许 Copilot 批准哪些文件路径。
To learn more about configuring approvals for your enterprise, organization, or repository, see the Copilot code review documentation.
要了解有关为企业、组织或仓库配置批准功能的更多信息,请参阅 Copilot 代码审查文档。
The post Copilot code review can now approve pull requests appeared first on The GitHub Blog.
"Post Copilot code review can now approve pull requests" 一文最初发布于 The GitHub Blog。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力