Skip to main content

Using GitHub Copilot code review

Learn how to request a code review from GitHub Copilot.

About Copilot code review

GitHub Copilot can review your code and provide feedback. Where possible, Copilot's feedback includes suggested changes which you can apply with a couple of clicks.

Two types of Copilot code review are available:

  • Review selection: Highlight code and ask for an initial review (only available in VS Code)
  • Review changes: Request a deeper review of all your changes (available in VS Code and the GitHub website)

This version of the article relates to Copilot code review on the GitHub website. To see information about the review selection type of Copilot code review, click the "Visual Studio Code" tool switcher at the top of the page.

Availability

Copilot code review on the GitHub website is a premium feature, available with the Copilot Pro, Copilot Pro+, Copilot Business, and Copilot Enterprise plans.

Code review monthly quota

The review changes type of Copilot code review is a premium feature with a per-person monthly quota.

Note

The per-person quota for Copilot code review will commence on May 5th, 2025.

When you assign Copilot as a reviewer for a pull request, one premium request is deducted from your monthly quota each time Copilot posts comments to the pull request. See About premium requests.

If a repository is configured to automatically request a code review from Copilot for all new pull requests, the premium request usage is applied to the quota of the pull request author. If a pull request is created by GitHub Actions or by a bot, the usage will apply to the user who triggered the workflow (if identifiable), or to a designated billing owner.

When you reach your monthly quota you will not be able to get a code review from Copilot until your quota resets—unless you upgrade your Copilot plan or enable additional premium requests.

Language support

Copilot code review on the GitHub website supports the following languages:

  • C
  • C#
  • C++
  • Go
  • Java
  • JavaScript
  • Kotlin
  • Markdown
  • Python
  • Ruby
  • Swift
  • TypeScript

Plus public preview support for HTML & Text.

Validating Copilot code reviews

Warning

Copilot isn't guaranteed to spot all problems or issues in a pull request, and sometimes it will make mistakes. Always validate Copilot's feedback carefully, and supplement Copilot's feedback with a human review.

For more information, see Responsible use of GitHub Copilot code review.

Requesting a review from Copilot

These instructions explain how to use Copilot code review in the GitHub website. To see instructions for Visual Studio Code, use the "Visual Studio Code" tool switcher at the top of the page.

Requesting a pull request review from Copilot

  1. On GitHub.com, create a pull request or navigate to an existing pull request.

  2. Open the Reviewers menu, then select Copilot.

    Screenshot of selecting 'Copilot' from the 'Reviewers' menu.

  3. Wait for Copilot to review your pull request. This usually takes less than 30 seconds.

  4. Scroll down and read through Copilot's comments.

    Screenshot of a code review left by Copilot.

    Copilot always leaves a "Comment" review, not an "Approve" review or a "Request changes" review. This means that Copilot's reviews do not count toward required reviews for the pull request, and Copilot's reviews will not block merging changes. For more details, see Approving a pull request with required reviews.

  5. Copilot's review comments behave like review comments from humans. You can add reactions to them, comment on them, resolve them and hide them.

    Any comments you add to Copilot's review comments will be visible to humans, but they won't be visible to Copilot, and Copilot won't reply.

Working with suggested changes provided by Copilot

Where possible, Copilot's feedback includes suggested changes which you can apply with a couple of clicks.

If you're happy with the changes, you can accept a single suggestion from Copilot and commit it, or accept a group of suggestions together in a single commit. For more information, see Incorporating feedback in your pull request.

If you want to validate Copilot's suggested changes (for example by running automated tests or your linter), or if you want to make modifications before committing the suggested changes, click the Open in Workspace button. For more information, see Using Copilot to help you work on a pull request.

Providing feedback on Copilot's reviews

You can provide feedback on Copilot's comments directly within each comment. We use this information to improve the product and the quality of Copilot's suggestions.

  1. On a pull request review comment from Copilot, click the thumbs up (👍) or thumbs down (👎) button.

    Screenshot showing a Copilot code review comment with the thumbs up and thumbs down buttons.

  2. If you click the thumbs down button, you're asked to provide additional information. You can, optionally, pick the reason for your negative feedback and leave a comment before clicking Submit feedback.

    Screenshot of the form for providing additional information when you give negative feedback on a comment from Copilot.

Requesting a re-review from Copilot

When you push changes to a pull request that Copilot has reviewed, it won't automatically re-review your changes.

To request a re-review from Copilot, click the button next to Copilot's name in the Reviewers menu. For more information, see Requesting a pull request review.

Note

When re-reviewing a pull request, Copilot may repeat the same comments again, even if they have been dismissed with the "Resolve conversation" button or downvoted with the thumbs down (👎) button.

Enabling automatic reviews

By default, you manually request a review from Copilot on each pull request, in the same way you would request a review from a human. However, you can set up Copilot to automatically review all pull requests in a repository, or for all repositories in an organization. See Configuring automatic code review by Copilot.

Customizing Copilot's reviews with coding guidelines

Note

The custom coding guidelines feature is only available with the Copilot Enterprise plan, and is currently limited to selected customers.

When using Copilot code review to review changes in Visual Studio Code or the GitHub website, you can customize Copilot's review with custom coding guidelines written in natural language. Copilot will give feedback based on your coding guidelines when it reviews your code. For more information, see Configuring coding guidelines for GitHub Copilot code review.

Comments generated based on a coding guideline will include a message, highlighting their source.