Correct and clarify information about code review in VS Code (#58273)
This commit is contained in:
@@ -12,7 +12,7 @@ redirect_from:
|
|||||||
- /copilot/concepts/code-review/code-review
|
- /copilot/concepts/code-review/code-review
|
||||||
- /copilot/concepts/code-review
|
- /copilot/concepts/code-review
|
||||||
contentType: concepts
|
contentType: concepts
|
||||||
category:
|
category:
|
||||||
- Learn about Copilot
|
- Learn about Copilot
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ If you receive {% data variables.product.prodname_copilot_short %} from an organ
|
|||||||
|
|
||||||
## Code review monthly quota
|
## 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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ The following {% data variables.product.prodname_copilot_short %} features can u
|
|||||||
|
|
||||||
| Feature | Premium request consumption | SKU Attribution |
|
| 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. 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_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_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.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.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 |
|
| [{% 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 |
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ redirect_from:
|
|||||||
- /copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot
|
- /copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot
|
||||||
- /copilot/how-tos/custom-instructions/add-repository-instructions
|
- /copilot/how-tos/custom-instructions/add-repository-instructions
|
||||||
- /copilot/how-tos/use-copilot-agents/request-a-code-review/configure-coding-guidelines
|
- /copilot/how-tos/use-copilot-agents/request-a-code-review/configure-coding-guidelines
|
||||||
category:
|
category:
|
||||||
- Configure Copilot
|
- Configure Copilot
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -266,9 +266,6 @@ Once saved, these instructions will apply to the current project in Eclipse that
|
|||||||
|
|
||||||
## Creating repository-wide custom instructions
|
## 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`.
|
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.
|
Create the `.github` directory if it does not already exist.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ redirect_from:
|
|||||||
- /copilot/how-tos/agents/copilot-code-review/use-code-review
|
- /copilot/how-tos/agents/copilot-code-review/use-code-review
|
||||||
- /copilot/how-tos/agents/request-a-code-review/use-code-review
|
- /copilot/how-tos/agents/request-a-code-review/use-code-review
|
||||||
contentType: how-tos
|
contentType: how-tos
|
||||||
category:
|
category:
|
||||||
- Author and optimize with Copilot
|
- 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 %}.
|
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. In {% data variables.product.prodname_vscode %}, select the code you want to review.
|
||||||
1. Open the {% data variables.product.prodname_vscode_command_palette_shortname %}
|
1. Right-click the selected code and choose **Generate Code** > **Review**.
|
||||||
* For Mac:
|
1. {% data variables.product.prodname_vscode_shortname %} creates review comments in the **Comments** panel and also shows them inline in the editor.
|
||||||
* Use: <kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd>
|
|
||||||
* For Windows or Linux:
|
|
||||||
* Use <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>
|
|
||||||
1. In the command palette, search for and select **{% data variables.product.prodname_copilot %}: Review and Comment**.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
### Reviewing all uncommitted changes
|
### 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
|
## 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 %}
|
{% data reusables.copilot.code-review.custom-instructions-information %}
|
||||||
|
|
||||||
{% endvscode %}
|
{% endvscode %}
|
||||||
|
|||||||
@@ -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.
|
|
||||||
Reference in New Issue
Block a user