diff --git a/content/copilot/concepts/agents/code-review.md b/content/copilot/concepts/agents/code-review.md index b99f5521e4..79f705f0be 100644 --- a/content/copilot/concepts/agents/code-review.md +++ b/content/copilot/concepts/agents/code-review.md @@ -12,7 +12,7 @@ redirect_from: - /copilot/concepts/code-review/code-review - /copilot/concepts/code-review contentType: concepts -category: +category: - Learn about Copilot --- @@ -69,7 +69,7 @@ If you receive {% data variables.product.prodname_copilot_short %} from an organ ## Code review monthly quota -Each time {% data variables.product.prodname_copilot_short %} reviews a pull request, or reviews files in your IDE that contain changes, your monthly quota of Copilot premium requests is reduced by one. Code review for currently selected text in {% data variables.product.prodname_vscode_shortname %} does not consume a premium request. For information about premium requests, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests). +Each time {% data variables.product.prodname_copilot_short %} reviews a pull request, or reviews files in your IDE that contain uncommitted changes, your monthly quota of Copilot premium requests is reduced by one. Code review for currently selected text in {% data variables.product.prodname_vscode_shortname %} does not consume a premium request. For information about premium requests, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests). If a repository is configured to automatically request a code review from {% data variables.product.prodname_copilot_short %} 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 {% data variables.product.prodname_actions %} or by a bot, the usage will apply to the user who triggered the workflow (if identifiable), or to a designated billing owner. diff --git a/content/copilot/concepts/billing/copilot-requests.md b/content/copilot/concepts/billing/copilot-requests.md index 263523bb25..d758f15b66 100644 --- a/content/copilot/concepts/billing/copilot-requests.md +++ b/content/copilot/concepts/billing/copilot-requests.md @@ -39,8 +39,7 @@ The following {% data variables.product.prodname_copilot_short %} features can u | Feature | Premium request consumption | SKU Attribution | | ------- | ----------- | ----------- | -| [Agent mode in {% data variables.copilot.copilot_chat_short %}](/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide#copilot-edits) | Agent mode uses **one premium request** per user prompt, multiplied by the model's rate. | {% data variables.product.prodname_copilot_short %} premium requests | -| [{% data variables.copilot.copilot_chat_short %}](/copilot/using-github-copilot/copilot-chat) | {% data variables.copilot.copilot_chat_short %} uses **one premium request** per user prompt, multiplied by the model's rate. | {% data variables.product.prodname_copilot_short %} premium requests | +| [{% data variables.copilot.copilot_chat_short %}](/copilot/using-github-copilot/copilot-chat) | {% data variables.copilot.copilot_chat_short %} uses **one premium request** per user prompt, multiplied by the model's rate. This includes edit, agent, and plan modes in {% data variables.copilot.copilot_chat_short %} in an IDE. | {% data variables.product.prodname_copilot_short %} premium requests | | [{% data variables.copilot.copilot_cli_short %}](/copilot/concepts/agents/about-copilot-cli) | Each prompt to {% data variables.copilot.copilot_cli_short %} uses **one premium request** with the default model. For other models, this is multiplied by the model's rate. | {% data variables.product.prodname_copilot_short %} premium requests | | [{% data variables.product.prodname_copilot_short %} code review](/copilot/using-github-copilot/code-review/using-copilot-code-review) | When you assign {% data variables.product.prodname_copilot_short %} as a reviewer for a pull request, **one premium request** is used each time {% data variables.product.prodname_copilot_short %} posts comments to the pull request. | {% data variables.product.prodname_copilot_short %} premium requests | | [{% data variables.copilot.copilot_coding_agent %}](/copilot/concepts/about-copilot-coding-agent) | {% data variables.copilot.copilot_coding_agent %} uses **one premium request** per session, plus **one premium request** for each real-time steering comment made during an active session. A session begins when you ask {% data variables.product.prodname_copilot_short %} to create a pull request or make one or more changes to an existing pull request. | {% data variables.copilot.copilot_coding_agent %} premium requests | diff --git a/content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md b/content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md index 79aaecf4cc..6e09733b4e 100644 --- a/content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md +++ b/content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md @@ -13,7 +13,7 @@ redirect_from: - /copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot - /copilot/how-tos/custom-instructions/add-repository-instructions - /copilot/how-tos/use-copilot-agents/request-a-code-review/configure-coding-guidelines -category: +category: - Configure Copilot --- @@ -266,9 +266,6 @@ Once saved, these instructions will apply to the current project in Eclipse that ## Creating repository-wide custom instructions -> [!NOTE] -> {% data reusables.copilot.custom-instructions-ccr-support %} See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=vscode). - 1. In the root of your repository, create a file named `.github/copilot-instructions.md`. Create the `.github` directory if it does not already exist. diff --git a/content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md b/content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md index cf61510b08..0d2df4d793 100644 --- a/content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md +++ b/content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md @@ -16,7 +16,7 @@ redirect_from: - /copilot/how-tos/agents/copilot-code-review/use-code-review - /copilot/how-tos/agents/request-a-code-review/use-code-review contentType: how-tos -category: +category: - Author and optimize with Copilot --- @@ -97,17 +97,8 @@ By default, you manually request a review from {% data variables.product.prodnam You can request an initial review of a highlighted selection of code in {% data variables.product.prodname_vscode %}. 1. In {% data variables.product.prodname_vscode %}, select the code you want to review. -1. Open the {% data variables.product.prodname_vscode_command_palette_shortname %} - * For Mac: - * Use: Shift+Command+P - * For Windows or Linux: - * Use Ctrl+Shift+P -1. In the command palette, search for and select **{% data variables.product.prodname_copilot %}: Review and Comment**. - - ![Screenshot of the command palette in {% data variables.product.prodname_vscode %} with the **{% data variables.product.prodname_copilot %}: Review and Comment** command selected.](/assets/images/help/copilot/vsc-review-and-comment.png) - -1. Wait for {% data variables.product.prodname_copilot_short %} to review your changes. This usually takes less than 30 seconds. -1. If {% data variables.product.prodname_copilot_short %} has any comments, they will be shown inline in your file, and in the **Problems** tab. +1. Right-click the selected code and choose **Generate Code** > **Review**. +1. {% data variables.product.prodname_vscode_shortname %} creates review comments in the **Comments** panel and also shows them inline in the editor. ### Reviewing all uncommitted changes @@ -141,9 +132,6 @@ To provide feedback, hover over the comment and click the thumbs up or thumbs do ## Customizing {% data variables.product.prodname_copilot_short %}'s reviews with custom instructions -> [!NOTE] -> {% data reusables.copilot.custom-instructions-ccr-support %} - {% data reusables.copilot.code-review.custom-instructions-information %} {% endvscode %} diff --git a/data/reusables/copilot/custom-instructions-ccr-support.md b/data/reusables/copilot/custom-instructions-ccr-support.md deleted file mode 100644 index b7d2be6bb4..0000000000 --- a/data/reusables/copilot/custom-instructions-ccr-support.md +++ /dev/null @@ -1 +0,0 @@ -Currently, {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_vscode_shortname %} only supports repository-wide custom instructions, and these are only supported when you are reviewing a selection of code in a file, not when reviewing all uncommitted changes.