Pull request reviews are a critical quality gate, but reviewers often spend too much time finding the changed files, reconstructing the surrounding architecture and checking familiar issues. GitHub Copilot code review adds an AI reviewer to that workflow. It can examine a pull request, leave comments with severity labels, explain potential problems and suggest changes that you can apply or send to Copilot cloud agent for further work.
Important: Treat Copilot as an additional reviewer, not as the person responsible for approving a release. It can miss defects, misunderstand business rules or suggest a change that compiles but is still wrong. Run your tests and keep human ownership of the merge decision.
What GitHub Copilot code review does
Copilot code review analyzes changes in a pull request and returns review comments. GitHub says it can review code written in any language. Where possible, comments include suggested edits that can be applied directly. The review can also use repository context, custom instructions, relevant agent skills and configured Model Context Protocol (MCP) servers to make its feedback more specific.
On GitHub.com, the normal review flow is simple: open a pull request, request Copilot under the Reviewers section, then inspect the comments. Copilot labels comments as High, Medium or Low severity. By default, it submits a Comment review, not an approval or a request for changes.
Who benefits from AI pull request reviews?
- Individual developers who want a second pass over a change before asking a teammate to review it.
- Small engineering teams that need consistent first-pass checks across many pull requests.
- Security and platform teams that want repository-specific review guidance for authentication, authorization, secrets and infrastructure changes.
- Maintainers of large codebases who need an assistant to gather context across files and explain how a change may affect other components.
It is most useful when the pull request description explains the intended behavior and the repository contains accurate architecture and testing instructions. A short, focused change with a clear purpose is easier to review than a very large pull request with no context.
Prerequisites and availability
- Plan: Full pull request code review is available on paid GitHub Copilot plans. Copilot Free has a more limited review-selection feature in Visual Studio Code, rather than the full GitHub.com pull request review experience.
- Repository access: You need permission to open or access the pull request. Organization policies may control whether Copilot code review is enabled.
- Organization users without a Copilot license: On Copilot Business and Enterprise, an administrator can explicitly enable code review for unlicensed members on GitHub.com. This requires paid AI-credit usage to be enabled and is not available in IDEs.
- For automatic reviews: Personal automatic-review settings are available on Pro, Pro+, Max, Business and Enterprise, but not for managed user accounts. Repository and organization rulesets can also request reviews automatically.
- For richer repository context: GitHub Actions runners must be available for the additional agentic capabilities. If those capabilities cannot run, Copilot can still produce a more limited review.
Feature access is also subject to organization and enterprise policy, spending controls and the availability of the repository's configured services.
Step 1: Prepare a focused pull request
Before asking for an AI review, make the change easy to understand. Write a title that describes the outcome, explain why the change is needed and list the behavior that should remain unchanged. If the change has a security or compatibility impact, say so in the description.
For example, a useful description for a permissions change would explain which roles should gain access, which roles must remain blocked, how the decision is enforced on the server and which tests cover both allowed and denied requests.
Step 2: Request Copilot as a reviewer
- Open GitHub.com and navigate to the pull request you want reviewed.
- In the right sidebar, find Reviewers.
- Next to Copilot, select Request.
- Wait for the review to finish, then scroll through the review comments.
- Read each comment in the context of the changed code and the intended behavior. Start with High severity, but do not ignore a Medium or Low comment simply because of its label.
GitHub's documentation says reviews usually take less than 30 seconds, although larger changes and repository context can affect the time. The review is a useful first pass, not a substitute for a complete test run.
Step 3: Choose the review effort level
Copilot supports three review effort levels. The default is Balanced unless a request, user setting, repository setting or organization setting specifies another level.
| Level | Best use | Estimated average per review |
|---|---|---|
| Lite | Routine changes and quick checks | About $0.25 USD |
| Balanced | Complex logic, security-sensitive work and cross-service changes | About $1.50 USD |
| Max | Release-critical changes that need the most intensive review | About $10 USD |
These are GitHub's approximate averages, not fixed prices. The documented typical ranges are $0.05–$1 for Lite, $0.25–$5 for Balanced and $1.50–$25 for Max. Actual usage depends on factors such as pull request size and repository instructions. Max is currently a public preview and may change.
Choose the effort level in the Reviewers section before requesting the review, or set a default in Copilot code review settings. Use Lite for routine changes, Balanced for important work and Max selectively when the additional cost is justified.
Step 4: Add repository-wide review instructions
Generic review guidance is less useful than instructions that describe how your project is built. Add a .github/copilot-instructions.md file at the repository root. Keep it short, factual and maintained as the codebase changes.
For example, a TypeScript application could use instructions like these:
When reviewing a pull request:
- Check authorization on the server, not only in the UI.
- Do not expose secrets, tokens or private environment values.
- Preserve existing API contracts unless the pull request explicitly changes them.
- Check loading, empty, error and success states for user-facing features.
- Look for missing validation at trust boundaries.
- Prefer focused changes over unrelated refactoring.
- Verify that new behavior has appropriate tests.
- Do not treat a passing type check as proof that runtime behavior is correct.These are example review rules, not a security policy by themselves. Adapt them to your real architecture, data classification, test commands and deployment process.
Step 5: Add path-specific instructions where needed
Different parts of a repository may need different checks. GitHub supports path-specific instructions in files ending with .instructions.md under .github/instructions. Add an applyTo frontmatter pattern to target the files that should receive the extra guidance.
---
applyTo: "**/*.ts,**/*.tsx"
---
When reviewing TypeScript and TSX files:
- Check that external input is validated before use.
- Avoid weakening types with broad any casts.
- Verify that async failures are handled intentionally.
- Check that client components do not expose server-only values.On GitHub.com, path-specific custom instructions are supported for Copilot cloud agent and Copilot code review. When reviewing a pull request, Copilot reads custom instructions and agent skills from the pull request's head branch—the branch containing the proposed changes—not from the base branch. This lets a team test updated instructions in the same pull request.
Step 6: Use suggested fixes carefully
When a comment includes a suggested change, inspect the patch before accepting it. Check that it addresses the underlying issue, preserves error handling and does not introduce a different security or compatibility problem. You can accept a single suggestion or a group of suggestions and commit them to the pull request.
For supported comments, Fix with Copilot can pass the suggestion to Copilot cloud agent. The agent can be asked to create a new pull request against your branch or commit a fix to the same pull request. Passing review suggestions to cloud agent is a public preview and is subject to change. Keep the generated patch separate from the reviewer's decision to merge.
Step 7: Automate reviews for a repository
If your team wants every eligible pull request to receive a first-pass review, configure a branch ruleset:
- Open the repository's Settings.
- Under Code, planning, and automation, open Rulesets.
- Create a new branch ruleset and set its enforcement status to Active.
- Choose the target branch or branches, such as the default branch.
- Under branch rules, enable Automatically request Copilot code review.
- Optionally enable Review new pushes to request another review after each new commit, and Review draft pull requests to review work before it is marked ready.
- Save the ruleset and test it with a low-risk pull request.
Repository and organization rulesets can operate alongside individual settings. If more than one configuration applies, GitHub still posts a single review for the pull request.
Billing: AI credits and GitHub Actions minutes
Each Copilot code review consumes AI credits. The amount depends on the model interaction and tokens processed. The agentic capabilities—such as full project context gathering and passing suggestions to cloud agent—also use GitHub Actions runners. Larger GitHub-hosted runners can cost more per minute; self-hosted runners do not consume GitHub Actions minutes.
For automatic reviews, usage is normally attributed to the pull request author. For a manual review, it is normally attributed to the person who requested it. Organizations can configure eligible usage to be billed to the organization instead, but enabling organization billing does not by itself grant access to code review. If the applicable user or organization budget is exhausted, reviews can be blocked.
Check the usage and billing pages before enabling automatic reviews across a large repository fleet. A small pilot with Lite or Balanced reviews can show how often the team uses the feature and how large pull requests affect consumption.
Limitations and review checklist
- AI review comments can be incorrect, incomplete or based on a misunderstanding of the product requirements.
- Custom instructions improve context but do not guarantee that Copilot will follow every rule exactly.
- Agentic context gathering and fix handoff rely on GitHub Actions. If runners are disabled or the relevant workflows fail, reviews may omit those additional capabilities.
- Max effort and the Fix with Copilot handoff are preview features, so their behavior can change.
- Copilot reviews do not run your complete CI pipeline for you. Keep tests, static analysis, dependency scanning and human review in place.
- By default, Copilot's review does not count toward required pull request approvals. Copilot approvals must be explicitly enabled by repository, organization or enterprise administrators.
Before merging, verify the reported issue, inspect every accepted suggestion, run the relevant tests and confirm that a human reviewer has checked the business and security impact.
Frequently asked questions
Can GitHub Copilot review pull requests automatically?
Yes. You can enable automatic reviews in personal Copilot settings or create repository and organization rulesets that request reviews for eligible pull requests. New-push and draft reviews are optional settings.
Does Copilot approve a pull request by default?
No. By default it leaves a Comment review. An approval assessment appears in the overview comment, but it does not count toward required approvals unless administrators explicitly enable Copilot approvals.
Can I use Copilot code review without a Copilot license?
Organization members without a license can use it on GitHub.com when an administrator enables the required policies in a Copilot Business or Enterprise organization. The organization must also enable paid AI-credit usage. This route is not available in IDEs.
Is GitHub Copilot code review free?
Full pull request review consumes AI credits. GitHub Free users have a more limited code review selection feature in Visual Studio Code. Paid plan allowances, organization billing and any additional usage depend on the account and administrator settings.
Can Copilot use our own code review checklist?
Yes. Add repository-wide instructions in .github/copilot-instructions.md and path-specific guidance under .github/instructions. Keep the instructions accurate and concise, and test them on real pull requests.