Skip to main content

Managing GitHub Copilot code review in your enterprise

Enable members of your enterprise to use Copilot to review code and create pull request summaries.

谁可以使用此功能?

Enterprise owners

This policy controls the use of Copilot 代码评审 and Copilot 拉取请求摘要 in your enterprise.

For an introduction to Copilot 代码评审, see 关于 Copilot 代码评审.

For more information about Copilot 拉取请求摘要, see 使用 GitHub Copilot 创建拉取请求摘要.

Enabling Copilot 代码评审 for your Copilot subscribers

You can enable Copilot 代码评审 and Copilot 拉取请求摘要 for your members on the Copilot policies page for your enterprise. See 管理企业中 Copilot 的策略和功能.

  • "Enabled" means all users granted a Copilot license by any of your organizations will be able to use the feature.
  • "Disabled" means no users granted a Copilot license by your organizations will be able to use the feature.
  • "No policy" means organization owners in each of your organizations will be able to decide if their Copilot licensees can use the feature.

Next steps

  • If you selected Enabled, tell organization owners that these features are enabled for all members.
  • If you selected No policy, discuss member enablement with organization owners.

Disabling Copilot 代码评审 in your repositories

Copilot policies affect only the users you assign a Copilot license to.

If there are Copilot 专业版 or Copilot Pro+ users with access to your enterprise's repositories, they will be able to use Copilot 代码评审 and will not be restricted by your policies.

Alternatively, you can disable the agent for all repositories owned by your enterprise.

  1. 在 GitHub 的右上角,单击你的个人资料图片。
  2. 根据环境,单击“你的企业”,或单击“你的企业”,然后单击要查看的企业********。
  3. 在页面顶部,单击“ Policies”****。
  4. 在“Policies”部分中,单击“Copilot”****。
  5. 在“GitHub Copilot”页上,单击“策略”选项卡。
  6. Select Block Copilot 代码评审 in all enterprise repositories.