|
| 1 | +--- |
| 2 | +title: Enabling GitHub Copilot code review in your enterprise |
| 3 | +intro: Apply consistent standards by having {% data variables.product.prodname_copilot_short %} review every pull request. |
| 4 | +allowTitleToDifferFromFilename: true |
| 5 | +permissions: Enterprise owners |
| 6 | +versions: |
| 7 | + feature: copilot |
| 8 | +shortTitle: Enable {% data variables.copilot.copilot_code-review_short %} |
| 9 | +redirect_from: |
| 10 | + - /copilot/how-tos/administer-copilot/manage-for-enterprise/manage-copilot-code-review |
| 11 | + - /copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/manage-copilot-code-review |
| 12 | +contentType: how-tos |
| 13 | +category: |
| 14 | + - Manage Copilot for a team |
| 15 | +--- |
| 16 | + |
| 17 | +<!-- expires 2026-06-01 --> |
| 18 | + |
| 19 | +{% data reusables.copilot.code-review-actions-minutes-note %} |
| 20 | + |
| 21 | +<!-- end expires 2026-06-01 --> |
| 22 | + |
| 23 | +{% data variables.product.prodname_copilot %} can review pull requests in your enterprise. This can save time for human reviewers by detecting bugs or vulnerabilities and enforcing consistent coding standards. |
| 24 | + |
| 25 | +## Enabling {% data variables.copilot.copilot_code-review_short %} for your {% data variables.product.prodname_copilot_short %} subscribers |
| 26 | + |
| 27 | +The policy for {% data variables.copilot.copilot_code-review_short %} allows your licensed users to request reviews from {% data variables.product.prodname_copilot_short %} and use {% data variables.product.prodname_copilot_short %} to generate pull request summaries. |
| 28 | + |
| 29 | +{% data reusables.enterprise-accounts.access-enterprise %} |
| 30 | +{% data reusables.enterprise-accounts.ai-controls-tab %} |
| 31 | +1. Scroll down to "Available Agents", then click **{% data variables.copilot.copilot_code-review_short %}**. |
| 32 | +1. Next to "{% data variables.copilot.copilot_code-review_short %}", select a policy. |
| 33 | + |
| 34 | +{% data reusables.enterprise-accounts.policy-enablement-next-steps %} |
| 35 | + |
| 36 | +## Configuring automatic code review |
| 37 | + |
| 38 | +To apply standards consistently, you can configure {% data variables.copilot.copilot_code-review_short %} to run automatically on all pull requests opened across your enterprise or in specific repositories. |
| 39 | + |
| 40 | +1. Create an enterprise-level branch ruleset. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-governance). |
| 41 | +1. Target the organizations and repositories where {% data variables.copilot.copilot_code-review_short %} should run automatically. You may want to start with a small selection of repositories and run a trial to collect feedback. |
| 42 | +1. Enable the **Automatically request {% data variables.copilot.copilot_code-review_short %}** policy. |
| 43 | +1. Optionally, enable the additional settings. By reviewing on every push and reviewing draft pull requests, you will add consistency to the review process. However, you will also create more noise for developers. If you're running a pilot, consider starting with the basic setting to allow developers to get used to the new process first. |
| 44 | +1. Click **Create**. |
| 45 | + |
| 46 | +## Customizing reviews |
| 47 | + |
| 48 | +Encourage organization and repository administrators to create custom instructions for {% data variables.copilot.copilot_code-review_short %} so that reviews will be tailored to your coding standards and conventions. See [AUTOTITLE](/copilot/tutorials/customize-code-review). |
0 commit comments