Automatic PR Reviews

Automatic PR Reviews

Rather than manually adding Copilot as a reviewer for each pull request, you can configure Copilot to execute reviews automatically for your repository (or across multiple repositories).

This means every new PR (or every push to a PR, or even draft PRs) gets an AI-review by Copilot without you explicitly requesting it. Automation helps enforce consistency, catch routine issues earlier, and frees up human reviewers to focus on high-level logic and architecture.

Why use this

  • Ensures every PR gets at least one pass from Copilot.

  • Standardizes review quality and coverage across teams.

  • Saves time in large orgs with many active PRs.

✏️ Steps

  1. In your GitHub repository, head over to Settings-> Copilot-> Code review, then click the Go to rulesets button (or select an existing one)

  1. Create a new ruleset for your branch.

  1. Scroll down to the options and check Automatically request Copilot code review. Optionally select from the list of sub-options.

  1. Save the Ruleset and test

    1. See Manual PR Reviews for specifics on integrating Copilot’s suggestions.

Troubleshooting

  • Copilot doesn’t trigger: Ensure the ruleset is Active and targeted branches match your PR.

  • No comments appear: The PR may be too large or contain unsupported languages.

  • Copilot skipped review after new commits: Enable “Review new pushes” in the ruleset.

  • Feature not available: Verify your plan includes Copilot code review and that org admins haven’t disabled it.

  • Still not working? Try a manual review to confirm Copilot access, then revisit ruleset configuration.