{"meta":{"title":"Using GitHub Copilot code review","intro":"Learn how to request a code review from GitHub Copilot.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/how-tos","title":"How-tos"},{"href":"/en/copilot/how-tos/use-copilot-agents","title":"Use Copilot agents"},{"href":"/en/copilot/how-tos/use-copilot-agents/request-a-code-review","title":"Request a code review"},{"href":"/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review","title":"Use code review"}],"documentType":"article"},"body":"# Using GitHub Copilot code review\n\nLearn how to request a code review from GitHub Copilot.\n\n## Introduction\n\nGitHub 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.\n\nFor a full introduction to GitHub Copilot code review, see [About GitHub Copilot code review](/en/copilot/concepts/agents/code-review).\n\nCopilot code review uses GitHub Actions to run agentic capabilities. For more information, see [Agentic capabilities for Copilot code review](/en/copilot/concepts/agents/code-review#usage-of-github-actions-runners-for-agentic-capabilities-in-code-review).\n\n<div class=\"ghd-tool webui\">\n\nCopilot code review is also available for organization members without a Copilot license, when enabled by an enterprise administrator or organization owner. See [Copilot code review for organization members without a Copilot license](/en/copilot/concepts/agents/code-review#copilot-code-review-without-a-copilot-license).\n\n## Using Copilot code review\n\nThese instructions explain how to use Copilot code review in the GitHub website. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.\n\n1. On GitHub.com, create a pull request or navigate to an existing pull request.\n\n2. Under \"Reviewers\" in the right sidebar, next to **Copilot**, click **Request**.\n\n   ![Screenshot of Copilot with 'Request' button under 'Reviewers'.](/assets/images/help/copilot/code-review/request-review@2x.png)\n\n3. Wait for Copilot to review your pull request. This usually takes less than 30 seconds.\n\n4. Scroll down and read through Copilot's comments.\n\n   ![Screenshot of a code review left by Copilot.](/assets/images/help/copilot/code-review/review-comment@2x.png)\n\n   Copilot labels each comment with a severity level of \"High,\" \"Medium,\" or \"Low\" to help you prioritize the issues it finds based on their importance.\n\n   By default, Copilot leaves a \"Comment\" review, not an \"Approve\" review or a \"Request changes\" review. This means that, by default, Copilot's reviews do not count toward required approvals for the pull request. However, if configured to do so, Copilot can leave \"Approve\" reviews. For more information, see [Pull request approvals from Copilot](#pull-request-approvals-from-copilot).\n\n5. Where possible, Copilot's feedback includes suggested changes which you can apply with a couple of clicks.\n\n   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](/en/pull-requests/how-tos/review-pull-requests/incorporating-feedback-in-your-pull-request).\n\n   You can also invoke Copilot cloud agent to implement suggested changes. To do this, you must:\n\n   * Enable GitHub Copilot code review and Copilot cloud agent.\n   * On review comments from GitHub Copilot code review, click **Fix with Copilot**. This creates a draft comment on the pull request, where you can instruct Copilot to address specific feedback. You can then select whether Copilot will create a new pull request against your branch or a commit to the same pull request with the suggestions applied.\n\n6. Copilot's review comments behave like review comments from humans. You can add reactions to them, comment on them, resolve them and hide them.\n\n   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.\n\nYou can also request a review from Copilot through the GitHub REST API by requesting `copilot-pull-request-reviewer[bot]` as a reviewer. For more information, see [REST API endpoints for review requests](/en/rest/pulls/review-requests#request-reviewers-for-a-pull-request).\n\n## Enabling automatic reviews\n\nBy 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. See [Configuring code review by GitHub Copilot](/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-automatic-review).\n\n## Requesting a re-review from Copilot\n\nWhen you push changes to a pull request that Copilot has reviewed, it won't automatically re-review your changes unless you've configured it to review new pushes after enabling automatic reviews.\n\nTo manually request a re-review from Copilot, click the <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-sync\" aria-label=\"Re-request review\" role=\"img\"><path d=\"M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z\"></path></svg> button next to Copilot's name in the **Reviewers** menu. For more information, see [Requesting a pull request review](/en/pull-requests/how-tos/create-pull-requests/requesting-a-pull-request-review).\n\nTo automatically request re-reviews from Copilot on every push, enable automatic code review for the repository and select **Review new pushes** in the ruleset settings. For more information, see [Configuring code review by GitHub Copilot](/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-automatic-review#configuring-automatic-code-review-for-repositories-in-an-organization).\n\n> \\[!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 (:-1:) button.\n\n## Choosing a review effort level\n\nWith review effort levels, you can choose the level of thoroughness of Copilot's review that matches the criticality of your code.\n\n* **Lite**: Cost-efficient review that provides targeted feedback on glaring issues such as bugs, security vulnerabilities, and style inconsistencies.\n* **Balanced**: Deeper analysis of complex logic, security-sensitive code, and cross-service changes, using a higher-reasoning model.\n\nYou can select the review effort level in the pull request before you request a review from Copilot, under the **Reviewers** section where Copilot appears as a reviewer. Organization owners and repository administrators can also set a default effort level for automatic reviews.\n\nFor more information, see [About GitHub Copilot code review](/en/copilot/concepts/agents/code-review#review-effort-level).\n\n## Pull request approvals from Copilot\n\n> \\[!NOTE]\n> Copilot approvals are in public preview and subject to change.\n\nEvery Copilot code review includes an approval assessment in the overview comment, indicating whether Copilot considers the pull request ready to approve. On its own, this assessment does not count toward merge requirements.\n\nWhen approvals are enabled, Copilot can submit an approving review that satisfies your repository's required-approval rule the same way a teammate's approval would. If new commits are pushed after Copilot approves, the approval is dismissed, and you can re-request a review. For more details on required reviews, see [Approving a pull request with required reviews](/en/pull-requests/how-tos/review-pull-requests/approving-a-pull-request-with-required-reviews).\n\nApprovals are off by default and can be configured at the enterprise, organization, and repository levels. Repository administrators can also use file paths to control which Copilot approvals count toward merge requirements. For configuration steps, see [Configuring code review by GitHub Copilot](/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-automatic-review#customizing-copilot-code-review).\n\n## Customizing Copilot's reviews with custom instructions\n\nYou can customize Copilot code review by adding custom instructions to your repository. Repository custom instructions can either be repository wide or path specific.\n\nUse `.github/copilot-instructions.md` for repository-wide review guidance that should apply across the entire codebase. This is a good place to describe organization-wide expectations, such as coding standards, review criteria, or general practices that Copilot should consider in every review.\n\nUse an `AGENTS.md` file in the root of your repository to provide additional repository context that helps Copilot better understand how your project works. For example, you can explain which patterns are intentional, which parts of the codebase need closer scrutiny, and what your team considers good architecture, testing, and implementation practices. This helps make reviews more relevant and aligned with the way your team builds software.\n\nUse `.github/instructions/**/*.instructions.md` files for path-specific instructions that only apply when reviewing matching files. This is useful when different parts of the repository follow different conventions, require specialized checks, or need review guidance tailored to a particular language, framework, or subsystem.\n\nCopilot code review also reads custom instructions from `CLAUDE.md`, `GEMINI.md`, and `REVIEW.md` files in your repository, if they exist.\n\nFor more information, see [Adding repository custom instructions for GitHub Copilot](/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions).\n\n> \\[!NOTE]\n> When reviewing a pull request, Copilot reads repository custom instructions, agent instructions, and agent skills from the head branch (the branch with your changes), not the base branch. For example, when merging `my-feature-branch` into `main`, Copilot uses the instructions and skills in `my-feature-branch`, so you can test changes to them in the same pull request without merging them first.\n\n### Example\n\nThis example of a `.github/copilot-instructions.md` file contains three instructions that will be applied to all Copilot code reviews in the repository.\n\n```text\nWhen performing a code review, respond in Spanish.\n\nWhen performing a code review, apply the checks in the `/security/security-checklist.md` file.\n\nWhen performing a code review, focus on readability and avoid nested ternary operators.\n```\n\n## MCP servers and agent skills\n\nCopilot code review can use agent skills and MCP servers configured in the repository, when they are relevant to the code being reviewed.\n\nTo make these available for Copilot code review on GitHub, configure:\n\n* **Agent skills** in your repository (in `.github/skills`). If you want a skill to target review tasks, use a review-focused skill directory name such as `code-review`. For setup details, see [Adding agent skills for GitHub Copilot](/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills).\n* **MCP servers** in repository Copilot settings. The GitHub MCP server and Playwright MCP server are enabled by default. For setup details, see [Configure MCP servers for your repository](/en/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers).\n\nCopilot code review is more likely to use this context when:\n\n* Agent skills directories have review-focused names and descriptions, such as `code-review`, that indicate they are intended for pull request review.\n* Your agent skills or custom instructions explicitly tell Copilot code review to use specific MCP context.\n* Pull request descriptions reference items available through configured MCP servers, such as issue keys or incident IDs.\n\nTo verify which MCP context Copilot code review used for a specific review, check if there are attributions at the bottom of each review comment. These attributions reference the specific agent skill or MCP server that Copilot code review used to generate that comment. You can also open the linked review session from the pull request timeline, then check the session logs to see which MCP servers and tools were called.\n\nIn repository settings, **Allow Copilot to use MCP tools when reviewing pull requests** is enabled by default. Disable this setting if you want MCP servers available only for Copilot cloud agent, and not for Copilot code review. For step-by-step instructions, see [Configure MCP servers for your repository](/en/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers#disabling-mcp-tools-for-code-review).\n\n## Customizing Copilot code review's environment\n\nCopilot code review runs in an ephemeral development environment, similar to Copilot cloud agent. You can customize this environment using a GitHub Actions workflow file, in the same way you would for Copilot cloud agent, for example, to preinstall tools or dependencies, or to switch to a different operating system. For more information on how to structure this file, see [Configure the development environment](/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment).\n\nYou can use either of the following files to configure Copilot code review's environment:\n\n* `.github/workflows/copilot-setup-steps.yml`: If you have already configured this file for Copilot cloud agent, Copilot code review will use the same configuration by default.\n* `.github/workflows/copilot-code-review.yml`: We recommend creating this file if you want to configure Copilot code review's environment independently of Copilot cloud agent. If this file is present in your repository, it is used for Copilot code review instead of `copilot-setup-steps.yml`.\n\nYou can also configure firewall rules to control the domains and URLs that Copilot code review can access, at both the organization and repository level. These settings are configured separately from Copilot cloud agent's firewall settings, in their own section of the same \"Internet access\" tab. See [Customizing or disabling the firewall for GitHub Copilot](/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-the-firewall).\n\n## Providing feedback on Copilot's reviews\n\nYou 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.\n\nTo provide feedback on a review comment from Copilot, click the thumbs up (:+1:) or thumbs down (:-1:) button.\n\n![Screenshot showing a Copilot code review comment with the thumbs up and thumbs down buttons.](/assets/images/help/copilot/code-review/feedback-controls@2x.png)\n\n</div>\n\n<div class=\"ghd-tool vscode\">\n\n### Reviewing a selection of code\n\nYou can request an initial review of a highlighted selection of code in Visual Studio Code.\n\n1. In Visual Studio Code, select the code you want to review.\n2. Right-click the selected code and choose **Generate Code** > **Review**.\n3. VS Code creates review comments in the **Comments** panel and also shows them inline in the editor.\n\n### Reviewing all uncommitted changes\n\nIf you have uncommitted changes, you can request a review in Visual Studio Code.\n\n1. In VS Code, click the **Source Control** button in the Activity Bar.\n\n2. At the top of the **Source Control** view, hover over **CHANGES**, then click the <!-- Currently (Feb 2025) used here: https://docs.github.com/en/copilot/using-github-copilot/code-review/using-copilot-code-review?tool=vscode#reviewing-changes --> <svg class=\"octicon\" width=\"16\" height=\"16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\"><path d=\"M14.5 2H1.5L1 2.5V11.5L1.5 12H4V14.5L4.854 14.854L7.707 12H14.5L15 11.5V2.5L14.5 2ZM14 11H7.5L7.146 11.146L5 13.293V11.5L4.5 11H2V3H14V11Z\"/><path d=\"M7.079 5.205L5.262 7.033L7.078 8.853L6.371 9.56L4.2 7.386V6.679L6.37 4.5L7.079 5.205ZM9.7 4.505L9 5.214L10.826 7.033L8.995 8.853L9.7 9.562L11.889 7.389V6.68L9.7 4.505Z\"/></svg> **Copilot Code Review - Uncommitted Changes** button.\n\n   ![Screenshot of the \"Source Control\" view. The code review button is outlined in dark orange.](/assets/images/help/copilot/code-review/vscode-review-button.png)\n\n3. Wait for Copilot to review your changes. This usually takes less than 30 seconds.\n\n4. If Copilot has any comments, they will be shown inline in your file(s), and in the **Problems** tab.\n\n## Working with suggested changes provided by Copilot\n\nWhere possible, Copilot's feedback includes suggested changes which you can apply with a single click.\n\n![Screenshot of a comment from Copilot in Visual Studio Code with a suggested change.](/assets/images/help/copilot/code-review/vscode-comment@2x.png)\n\nIf you're happy with the change, you can accept a suggestion from Copilot by clicking the **Apply and Go To Next** button. Any changes you apply will not be automatically committed.\n\nIf you don't want to apply Copilot's suggested change, click the **Discard and Go to Next** button.\n\n## Providing feedback on Copilot's reviews\n\nYou 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.\n\nTo provide feedback, hover over the comment and click the thumbs up or thumbs down button.\n\n![Screenshot of a comment from Copilot in Visual Studio Code with feedback buttons displayed. The buttons are outlined in dark orange.](/assets/images/help/copilot/code-review/vscode-comment-feedback@2x.png)\n\n## Customizing Copilot's reviews with custom instructions\n\nYou can customize Copilot code review by adding custom instructions to your repository. Repository custom instructions can either be repository wide or path specific.\n\nUse `.github/copilot-instructions.md` for repository-wide review guidance that should apply across the entire codebase. This is a good place to describe organization-wide expectations, such as coding standards, review criteria, or general practices that Copilot should consider in every review.\n\nUse an `AGENTS.md` file in the root of your repository to provide additional repository context that helps Copilot better understand how your project works. For example, you can explain which patterns are intentional, which parts of the codebase need closer scrutiny, and what your team considers good architecture, testing, and implementation practices. This helps make reviews more relevant and aligned with the way your team builds software.\n\nUse `.github/instructions/**/*.instructions.md` files for path-specific instructions that only apply when reviewing matching files. This is useful when different parts of the repository follow different conventions, require specialized checks, or need review guidance tailored to a particular language, framework, or subsystem.\n\nCopilot code review also reads custom instructions from `CLAUDE.md`, `GEMINI.md`, and `REVIEW.md` files in your repository, if they exist.\n\nFor more information, see [Adding repository custom instructions for GitHub Copilot](/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions).\n\n> \\[!NOTE]\n> When reviewing a pull request, Copilot reads repository custom instructions, agent instructions, and agent skills from the head branch (the branch with your changes), not the base branch. For example, when merging `my-feature-branch` into `main`, Copilot uses the instructions and skills in `my-feature-branch`, so you can test changes to them in the same pull request without merging them first.\n\n### Example\n\nThis example of a `.github/copilot-instructions.md` file contains three instructions that will be applied to all Copilot code reviews in the repository.\n\n```text\nWhen performing a code review, respond in Spanish.\n\nWhen performing a code review, apply the checks in the `/security/security-checklist.md` file.\n\nWhen performing a code review, focus on readability and avoid nested ternary operators.\n```\n\n</div>\n\n<div class=\"ghd-tool visualstudio\">\n\n## Prerequisite\n\nTo use Copilot code review, you must use Visual Studio version 17.14 or later. See the [Visual Studio downloads page](https://visualstudio.microsoft.com/downloads/).\n\n## Using Copilot code review\n\nThese instructions explain how to use Copilot code review in Visual Studio. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.\n\n1. In the Git Changes window, click **Review changes with Copilot**.\n   This button appears as a comment icon with a sparkle.\n\n2. Copilot will begin reviewing your changes. After a few moments, a link showing the number of code review comments appears in the Git Changes window.\n\n3. Click the link to view and navigate the comments. If no issues are found, you'll see the message:\n   Copilot did not comment on any files.\n\n4. Copilot displays comments in your code with a summary of each potential issue. You can:\n\n   * Review and make changes based on the suggestions.\n   * Dismiss a comment using the downward arrow in the top-right corner of the comment box.\n\n5. To remove all review comments, click <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-x\" aria-label=\"The X icon\" role=\"img\"><path d=\"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z\"></path></svg> next to the code review link in the Git Changes window.\n\nFor more information on enabling and configuring Copilot code review in Visual Studio, see [Review local changes with Copilot Chat](https://learn.microsoft.com/en-us/visualstudio/version-control/git-make-commit?view=vs-2022#review-local-changes-with-copilot-chat) in the Visual Studio documentation.\n\n</div>\n\n<div class=\"ghd-tool mobile\">\n\n## Using Copilot code review\n\nThese instructions explain how to use Copilot code review in GitHub Mobile. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.\n\n1. In GitHub Mobile, open a pull request.\n2. Scroll down to the **Reviews** section and expand it.\n3. Click **Request Reviews**.\n4. Add Copilot as a reviewer, then click **Done**.\n\nCopilot will review the changes and provide feedback.\n\n</div>\n\n<div class=\"ghd-tool xcode\">\n\n## Prerequisite\n\nTo use Copilot code review in Xcode, you must use version 0.41.0 or later of the GitHub Copilot Chat extension. Download the latest release from the [`github/CopilotForXcode` repository](https://github.com/github/CopilotForXcode/releases/latest).\n\n## Using Copilot code review\n\nThese instructions explain how to use Copilot code review in Xcode. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.\n\n1. In Xcode, make some changes to one or more files.\n\n2. Open the Copilot chat window by clicking **Editor** in the menu bar, clicking **GitHub Copilot** then **Open Chat**.\n\n3. Near the bottom right of the prompt box in the Copilot chat window, click the **Code Review** button (a speech bubble icon).\n\n   ![Screenshot of the Copilot chat window in Xcode, with the 'Code Review' button outlined in dark orange.](/assets/images/help/copilot/code-review/xcode-ccr-button.png)\n\n4. Click either **Review Staged Changes** or **Review Unstaged Changes**.\n\n5. A list of files containing changes is displayed in the chat window. Click the check boxes to deselect any files you don't want Copilot to review.\n\n6. Click **Continue** to start the review process.\n\n7. If Copilot finds things to comment on, it displays a **Reviewed Changes** list in the chat window, listing the files it has commented on. Click a file in this list to see the comments.\n\n   Each comment is shown in a popup, overlaid over the editor.\n\n   ![Screenshot of a Copilot code review review comment.](/assets/images/help/copilot/code-review/xcode-review-popup.png)\n\n8. If there is more than one comment in the file, use the up and down arrows, at the top right of the popup, to navigate between comments.\n\n9. Copilot may suggest replacement code. You can apply the suggested change by clicking **Accept** or reject it by clicking **Dismiss**.\n\n10. Click another file in the **Reviewed Changes** list in the chat window, to see the review comments for another file.\n\n</div>\n\n<div class=\"ghd-tool jetbrains\">\n\n## Prerequisites\n\n* **Access to Copilot**. See [What is GitHub Copilot?](/en/copilot/get-started/what-is-github-copilot#get-access).\n\n* **Compatible JetBrains IDE**. To use GitHub Copilot in JetBrains, you must have a compatible JetBrains IDE installed. GitHub Copilot is compatible with the following IDEs:\n\n  * IntelliJ IDEA (Ultimate, Community, Educational)\n  * Android Studio\n  * CLion\n  * Code With Me Guest\n  * DataGrip\n  * DataSpell\n  * GoLand\n  * JetBrains Client\n  * MPS\n  * PhpStorm\n  * PyCharm (Professional, Community, Educational)\n  * Rider\n  * RubyMine\n  * RustRover\n  * WebStorm\n\n  See the [JetBrains IDEs](https://www.jetbrains.com/products/?ref_product=copilot\\&ref_type=engagement\\&ref_style=button) tool finder to download.\n\n* **Latest version of the GitHub Copilot extension**. See the [GitHub Copilot plugin](https://plugins.jetbrains.com/plugin/17718-github-copilot?ref_product=copilot\\&ref_type=engagement\\&ref_style=text) in the JetBrains Marketplace. For installation instructions, see [Installing the GitHub Copilot extension in your environment](/en/copilot/how-tos/set-up/install-copilot-extension?tool=jetbrains).\n\n* **Sign in to GitHub in your JetBrains IDE**. For authentication instructions, see [Installing the GitHub Copilot extension in your environment](/en/copilot/how-tos/set-up/install-copilot-extension?tool=jetbrains#installing-the-github-copilot-plugin-in-your-jetbrains-ide).\n\n## Using Copilot code review\n\nThese instructions explain how to use Copilot code review in JetBrains IDEs. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.\n\n1. In a JetBrains IDE, make some changes to one or more files.\n2. Open the \"Commit\" tool window on the left-hand side.\n3. Above the commit message input field, click **Copilot: Review Code Changes**. This button appears as a magnifying glass icon with a sparkle.\n4. Copilot will begin reviewing your changes.\n5. Copilot displays comments in your code with a summary of each potential issue. You can:\n\n   * Review and make changes based on the suggestions.\n   * Dismiss a comment by clicking **Discard**.\n6. If there is more than one comment, use the up and down arrows, at the top right of the popup, to navigate between comments.\n\n</div>\n\n<div class=\"ghd-tool cli\">\n\n## Prerequisites\n\n* **Access to Copilot**. See [What is GitHub Copilot?](/en/copilot/get-started/what-is-github-copilot#get-access).\n* **GitHub CLI**. You must have the GitHub CLI installed and authenticated. See [GitHub CLI quickstart](/en/github-cli/github-cli/quickstart).\n\n## Using Copilot code review\n\nThese instructions explain how to use Copilot code review with the GitHub CLI. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.\n\n### Requesting a review when creating a pull request\n\nYou can request a review from Copilot when creating a new pull request using `gh pr create`:\n\n```shell copy\ngh pr create --reviewer @copilot\n```\n\nYou can also select Copilot interactively from the searchable reviewer prompt during `gh pr create`.\n\n```text\n? Reviewers  [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]\n  [ ]  Search (7472 more)\n  [x]  monalisa (Mona Lisa)\n> [x]  Copilot (AI)\n```\n\n### Requesting a review on an existing pull request\n\nTo request a review from Copilot on an existing pull request, use `gh pr edit`. If you are not on the pull request's branch, specify the pull request number:\n\n```shell copy\ngh pr edit PR-NUMBER --add-reviewer @copilot\n```\n\nReplace `PR-NUMBER` with the number of the pull request you want reviewed. If you have the pull request's branch checked out, you can omit the number.\n\n</div>"}