Introduction
You can configure Copilot code review to review pull requests automatically, and you can set your Copilot review effort. For an overview, see About GitHub Copilot code review.
Configuring automatic code review for your own pull requests
You can set Copilot code review to review the pull requests you create, in any repository where Copilot code review is available to you.
Note
Configuring automatic code review is available on the Copilot Pro, Copilot Pro+, and Copilot Max plans, and with a Copilot Business or Copilot Enterprise license. It is not available for managed user accounts.
- In the upper-right corner of any page on GitHub, click your profile picture, then click Copilot settings.
- In the sidebar, under Copilot, click Code review.
- Enable Automatic Copilot code review.
- Optionally, to review each new push to a pull request that Copilot is already reviewing, enable Review new pushes.
- Optionally, to review pull requests while they are still marked as drafts, enable Review draft pull requests.
A pull request can qualify for automatic review from several independent sources: your user settings, repository rulesets, or organization rulesets. These sources are evaluated separately. If more than one source applies, Copilot still posts a single review. Your user settings cannot disable push or draft reviews that a ruleset has enabled. For more information, see About GitHub Copilot code review.
Configuring your Copilot review effort
You can choose the Copilot review effort that Copilot code review uses for the reviews you request. Your choice applies to automatic reviews and to reviews you request manually. For an overview of the levels and how Copilot decides which to use, see About GitHub Copilot code review.
- In the upper-right corner of any page on GitHub, click your profile picture, then click Copilot settings.
- In the sidebar, under Copilot, click Code review.
- Next to "Review effort level," select the Copilot review effort for reviews you request.
- Lite: Standard review.
- Balanced: Deeper analysis of complex logic, security-sensitive code, and cross-service changes.
- Max: Most thorough review. This option appears with a Coming soon label and is not available yet.
To return to the built-in default, select the Default option at the top of the menu. Until you choose a specific level, the control shows the built-in default that applies to you, either Default (Lite) or Default (Balanced).
Your Copilot review effort is independent of Automatic Copilot code review. Turning automatic review off does not clear your Copilot review effort or stop it from applying to reviews you request manually.
Configuring automatic code review for a repository
You can enable automatic code reviews for a repository and customize how code reviews are performed.
Enabling automatic reviews
-
On GitHub, navigate to the main page of the repository.
-
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the left sidebar, under "Code and automation," click Rulesets, then click Rulesets.
-
Click New ruleset.
-
Click New branch ruleset.
-
Under "Ruleset name," type a name for the ruleset.
-
To activate the ruleset, under "Enforcement Status", select Active.
-
Under "Target branches," click Add target and choose one of the options—for example, Include default branch or Include all branches.
-
Under "Target branches," click Add target and choose one of the target options.
-
Under "Branch rules," select Automatically request Copilot code review.
-
Optionally, if you want Copilot to review all new pushes to the pull request, select Review new pushes.
If this option is not selected, Copilot will only review the pull request once.
-
Optionally, if you want Copilot to review pull requests while they are still drafts, select the Review draft pull requests.
This can be a useful option for catching errors early, before requesting a human review.
-
At the bottom of the page, click Create.
Customizing Copilot code review
You can configure how Copilot code review completes code reviews in your repository.
-
On GitHub, navigate to the main page of the repository.
-
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Code, planning, and automation", click Copilot, then Code review.
-
To choose the depth of Copilot code reviews, next to "Review effort level," select the effort level for automatic reviews in this repository.
- Lite: Standard review.
- Balanced: Deeper analysis of complex logic, security-sensitive code, and cross-service changes.
Balanced reviews use more AI credits, and may consume marginally more GitHub Actions minutes. See About GitHub Copilot code review.
-
To choose whether Copilot can approve pull requests in your repository, configure the settings under "Auto-approval."
-
Allow Copilot to approve pull requests: Toggle on to let Copilot submit approving reviews.
-
Allow Copilot approvals to count toward merge requirements: Toggle on so Copilot approvals can satisfy pull request approval requirements.
-
File paths: Optionally, limit which pull requests count toward merge requirements. Enter one file glob per line to count approvals only on pull requests where every changed file matches one of the globs. Leave blank to count approvals for all files. Up to 15 globs are supported.
Note
Copilot approvals are in public preview and subject to change.
-
Configuring automatic code review for repositories in an organization
You can enable automatic code reviews for repositories in your organization and customize how code reviews are performed.
Enabling automatic reviews
-
In the upper-right corner of GitHub, click your profile picture, then click Organizations.
-
Select an organization by clicking on it.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Code, planning, and automation", click Repository, then click Rulesets.
-
Click New ruleset.
-
Click New branch ruleset.
-
Under "Ruleset name," type a name for the ruleset.
-
To activate the ruleset, under "Enforcement Status", select Active.
-
Under "Target repositories," click Add target and choose either Include by pattern or Exclude by pattern.
-
Type a pattern that matches the repository names you want to target—for example,
*featureto match all repositories with names ending infeature.For pattern-matching syntax, see Creating rulesets for repositories in your organization.
-
Click Add inclusion pattern or Add exclusion pattern.
-
Repeat for any additional patterns.
Note
You can add multiple targeting criteria to the same ruleset. Exclusion patterns are applied after inclusion patterns. For example, you could include any repositories matching the pattern
*cat*, and specifically exclude a repository matching the patternnot-a-cat. -
Under "Target branches," click Add target and choose one of the target options.
-
Under "Branch rules," select Automatically request Copilot code review.
-
Optionally, if you want Copilot to review all new pushes to the pull request, select Review new pushes.
If this option is not selected, Copilot will only review the pull request once.
-
Optionally, if you want Copilot to review pull requests while they are still drafts, select the Review draft pull requests.
This can be a useful option for catching errors early, before requesting a human review.
-
At the bottom of the page, click Create.
Customizing Copilot code review
You can configure how Copilot code review completes code reviews in repositories in your organization.
-
In the upper-right corner of GitHub, click your profile picture, then click Organizations.
-
Select an organization by clicking on it.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Code, planning, and automation", click Copilot, then Code review.
-
To choose the depth of Copilot code reviews, next to "Review effort level," select the default effort level for automatic reviews in repositories in your organization.
- Lite: Standard review.
- Balanced: Deeper analysis of complex logic, security-sensitive code, and cross-service changes.
Balanced reviews use more AI credits, and may consume marginally more GitHub Actions minutes. See About GitHub Copilot code review.
-
To choose whether Copilot can approve pull requests in your repositories, select an option under "Approvals," next to "Count Copilot approvals toward merge requirements."
-
Enabled everywhere: Copilot approvals can count toward merge requirements in every repository in the organization.
-
Let repositories decide: Repository admins can decide this in repository settings.
-
Enable for selected repositories: Copilot approvals can count toward merge requirements only in the repositories you select. If you choose this option, also assign the repositories you want to enable this for.
-
Disabled everywhere: Copilot approvals cannot count toward merge requirements in any repository in the organization.
Note
Copilot approvals are in public preview and subject to change.
-
Configuring automatic code review for an enterprise
You can enable automatic code reviews for your enterprise and customize how code reviews are performed.
Enabling automatic reviews
- Create an enterprise-level branch ruleset. See Enforcing code governance in your enterprise with rulesets.
- Target the organizations and repositories where Copilot code review should run automatically.
- Enable the Automatically request Copilot code review policy.
- Optionally, enable automatic reviews for draft pull requests and after each push to a pull request.
- Click Create.
Customizing Copilot code review
You can configure how Copilot code review completes code reviews for your enterprise.
- Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
- At the top of the page, click AI controls.
- Scroll down to "Available Agents", then click Copilot code review.
- Next to "Copilot code review", select a policy.
- Then choose which Copilot code review features to enable for your enterprise.
- To choose whether Copilot can approve pull requests in your organizations, next to "Allow Copilot to approve pull requests," select a policy.
-
Let organizations decide: Organization owners can choose whether to enable Copilot approvals.
-
Enable for selected organizations: Copilot approvals are enabled only for the organizations you select.
-
Disabled everywhere: Organizations cannot enable Copilot approvals. This is the default.
Note
Copilot approvals are in public preview and subject to change.
-