Overview
Ask GitHub Copilot to review a pull request in a private repository, read its comments alongside your tests and human review, and apply only the suggested fixes you agree with.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- GitHub Copilot
- Prerequisites
- A paid GitHub Copilot plan with code review allowed by your organisation's policies.
How It Works
Check that your plan includes Copilot code review and that your organisation's policies allow it for the repository. Open the pull request on GitHub and request a review from Copilot, or set up automatic reviews if you want every pull request covered. Read each comment against the diff and your test results, apply the suggestions you agree with, and reply to or dismiss the rest. Keep a human reviewer as the required approval before merge. If a review does not appear, check your plan's AI Credits allowance and your organisation's Copilot policies before requesting it again.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up GitHub Copilot.
- Connect the toolsConnect the tools this workflow relies on: GitHub Copilot.
- Check the prerequisitesA paid GitHub Copilot plan with code review allowed by your organisation's policies.
- Gather your detailsCollect what the prompt asks for: Pull request link, Repository, What to focus on.
- Run the starter promptPaste the starter prompt below into GitHub Copilot and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.github.com before you rely on it.
Practical Starter Prompt: Review this pull request for issues
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Review pull request [Pull request link] in [Repository]. Focus on [What to focus on], explain each issue you find with the file and line, and suggest a fix where you can. Do not push commits or approve the pull request; I will review your comments, apply the fixes I agree with and leave the merge decision to a human reviewer.Request Copilot as a reviewer on the pull request; to steer what it focuses on, put these points in your repository's custom instructions (check that Copilot code review applies them) or ask in Copilot Chat with the pull request attached. Apply only the suggestions you agree with and keep a human approval before merge.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. GitHub's documentation says Copilot code review reviews pull request changes, identifies potential issues and suggests fixes, on request or automatically, and that organisation and enterprise policies apply. The page does not say how long a review takes.
Limitations and Considerations
Copilot comments are suggestions, not approval: keep branch protection with a human reviewer, your tests and your security scans. Repository owners and administrators can disable Copilot for particular repositories, and from October 28, 2026 the new cloud experience is for paid Copilot plans. AI usage is paid for with GitHub AI Credits from a monthly allowance. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- GitHub Copilot on GitHub.com and GitHub Mobile - GitHub Docs (opens in a new tab)
Project documentation · docs.github.com · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- Copilot code review reviews pull request changes, identifies potential issues and suggests fixes; you can request a review or configure automatic reviews, then review and apply the suggested changes.
- Starting October 28, 2026, the new Copilot in the cloud experience is available to users with a paid Copilot plan, subject to organization and enterprise policies.
- Repository owners and administrators can disable Copilot for particular repositories.
- GitHub Copilot · Your AI coding agent · GitHub · GitHub (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- GitHub AI Credits are how AI usage in GitHub Copilot is paid for, and every plan includes a monthly allowance.