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 or Copilot Pro+ plan.
-
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 single 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 left sidebar, under "Code and automation," click Rules, 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.
This expands a set of subsidiary options.

-
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.
Configuring automatic code review for repositories in an 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 left sidebar, in the "Code, planning, and automation" section, 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.
This expands a set of subsidiary options.

-
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.