Introduction
You can configure Copilot code review to review pull requests automatically. For an overview of automatic pull request reviews, see About GitHub Copilot code review.
Configuring automatic code review for your own pull requests
Note
This is only available if you are on the Copilot Pro, Copilot Pro+, or Copilot Max plans.
-
In the upper-right corner of any page, click your profile picture, then click Copilot settings.
-
Locate the Automatic Copilot code review option and click the dropdown button.

-
In the dropdown menu, select Enabled.
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.
-