AI Code Review for GitHub Pull Requests: Setup, Costs, and Limits
AI code review for GitHub pull requests can read a whole repository, flag bugs and security issues, and suggest fixes in a click. This guide uses GitHub's own documentation to explain setup, review effort levels, real cost estimates, which files are skipped, and when a human approval is still required.
View 1 referenceAllow the functional cookie to save your likes. Privacy details
What does AI code review for GitHub pull requests actually do?
AI code review for GitHub pull requests reads a diff, flags bugs, security issues and style drift, then suggests fixes you can apply in a couple of clicks. GitHub's own reviewer can analyze the entire repository for context and, in preview, hand suggested fixes to a cloud agent.
GitHub documents the reviewer as a feature available on paid Copilot plans across github.com, the CLI, mobile, VS Code, Visual Studio, Xcode and JetBrains IDEs, with Azure DevOps in public preview. Every review posts an overview comment plus inline findings. The key distinction from a linter is scope: agentic context gathering reads files outside the diff to understand how a renamed field or a new query might break another package. GitHub Docs
How do you enable AI code review on a GitHub pull request?
You can request a review manually on any pull request, or configure automatic reviews for all pull requests in a repository or organization. Automatic reviews trigger when a pull request opens, when a draft first becomes open, and optionally on every new push or while still in draft.
- Manual request: open the pull request, choose Copilot in the Reviewers menu, and pick an effort level.
- Re-review: after new commits, use the re-request button next to Copilot's name; automatic re-review on pushes is a separate setting.
- Automatic reviews: repository or organization owners enable it in Copilot code review settings and select the triggers.
- Organization policy: if your organization supplies Copilot, the code review option must be enabled in policy settings.
- No-license members: two policies must be on — AI credits paid usage, and the sub-policy allowing unlicensed members to use code review on github.com.
What do the review effort levels cost?
Review effort levels trade thoroughness against AI credits. Lite gives fast feedback on common bugs and style issues; Balanced uses a higher-reasoning model for complex or cross-service changes and is the default; Max and Adaptive are public previews. The table below shows GitHub's per-review estimates, which exclude Actions minutes.
| Level | What it does | Typical cost per review |
|---|---|---|
| Lite | Fast, targeted feedback on common bugs, security issues and style | $0.05–$1 |
| Balanced (default) | Higher-reasoning model, longer analysis of complex or cross-service changes | $0.25–$5 |
| Max (public preview) | Multiple high-reasoning models for high-risk or release-critical pull requests | $1.50–$25 |
| Adaptive (public preview) | Copilot picks Lite, Balanced or Max from pull request complexity and risk | Varies |
GitHub states consumption rises with pull request size and repository custom instructions, and that these ranges may change as models evolve. Review cost has two parts: AI credits for the model interaction and Actions minutes for agentic context gathering. Automatic reviews charge the pull request author; manually requested reviews charge the requester. GitHub Docs
Can Copilot approve or block a pull request?
By default, no. A Copilot review includes an approval assessment in its overview comment, but it does not count toward the required approvals unless an administrator explicitly enables Copilot approvals. Merge blocking comes from a separate feature, GitHub Code Quality, which uses rulesets.
The distinction matters for compliance. Enabling Copilot approvals lets its review satisfy a required-approval rule like a teammate's, and that approval is revoked when new commits are pushed. Copilot code review itself only comments; Code Quality can add CodeQL-based rules, test-coverage metrics and optional merge gating. GitHub Docs
Which files does AI code review skip?
Copilot code review excludes dependency management files such as package.json and Gemfile.lock, log files and SVG files. If a pull request changes only those types, no findings appear for them. This is a deliberate boundary: manifests are often machine-generated, and logs and SVGs are not executable code in the usual sense.
This is a deliberate boundary rather than a failure. Dependency manifests are often machine-generated and produce noisy diffs, while logs and SVGs are not executable code in the usual sense. The practical effect is that a lockfile-only dependency bump gets no AI feedback, so that change still needs a human look at the version numbers and release notes.
How do you make AI reviews useful instead of noisy?
Give the reviewer repository-specific rules and keep each pull request small enough to read. GitHub supports four customization sources — repository instructions, path-scoped instructions, AGENTS.md and skills — plus MCP servers for external context. Choosing the right one has more effect on review quality than changing models.
Pick the right instruction file
.github/copilot-instructions.md— always-on, repository-wide rules for Copilot..github/instructions/*.instructions.md— always-on rules scoped to specific paths.AGENTS.md— standing conventions shared across AI tools, not just Copilot.- Skills under
.github/skills/— task-specific review workflows invoked when relevant.
Add context through MCP
Copilot code review can use repository-level MCP servers to pull context from issue trackers, documentation and incident tooling. The GitHub and Playwright MCP servers are enabled by default. Clear signals help — a review-focused skill directory name, custom instructions referencing MCP context, or issue keys in the pull request description.
Frequently asked questions
These questions come up most often when teams first adopt an AI reviewer. They cover whether a human is still needed, how unlicensed members are handled, and whether suggested fixes can be applied automatically. The answers below are drawn from GitHub's own documentation rather than vendor comparisons.
GitHub explicitly says Copilot is not guaranteed to spot all problems and sometimes makes mistakes, and advises validating its feedback and supplementing it with human review. Treat it as a first pass that catches mechanical defects, not as the merge decision.
Is it available without a Copilot license?
Organization members without a license can use it on github.com if an enterprise admin or organization owner enables two policies: AI credits paid usage and the unlicensed-member sub-policy. It is not available in IDEs for those users.
Can it open a pull request with the fixes applied?
Yes, in public preview. Passing suggestions to Copilot cloud agent can create a new pull request against your branch with the suggested fixes applied. Check the result before merging, since a generated patch still needs review.
How do you request a review from the GitHub CLI or an IDE?
Copilot code review is available on github.com, in the GitHub CLI, in GitHub Mobile, and in VS Code, Visual Studio, Xcode and JetBrains IDEs, with Azure DevOps in public preview. The review itself is the same feature; only the entry point changes.
In the CLI you request a review from the pull request view, and the findings appear as comments you can open in the browser. In an IDE the review runs against code in the editor rather than a pull request, which is useful before you open one. The same credit-based billing applies to both. Note that unlicensed organization members are limited to github.com and cannot use the IDE route.