You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/concepts/agents/code-review.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ redirect_from:
12
12
- /copilot/concepts/code-review/code-review
13
13
- /copilot/concepts/code-review
14
14
contentType: concepts
15
-
category:
15
+
category:
16
16
- Learn about Copilot
17
17
---
18
18
@@ -69,7 +69,7 @@ If you receive {% data variables.product.prodname_copilot_short %} from an organ
69
69
70
70
## Code review monthly quota
71
71
72
-
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).
72
+
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).
73
73
74
74
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.
|[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 |
43
-
|[{% 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 |
42
+
|[{% 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 |
44
43
|[{% 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 |
45
44
|[{% 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 |
46
45
|[{% 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 |
@@ -266,9 +266,6 @@ Once saved, these instructions will apply to the current project in Eclipse that
266
266
267
267
## Creating repository-wide custom instructions
268
268
269
-
> [!NOTE]
270
-
> {% data reusables.copilot.custom-instructions-ccr-support %} See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=vscode).
271
-
272
269
1. In the root of your repository, create a file named `.github/copilot-instructions.md`.
273
270
274
271
Create the `.github` directory if it does not already exist.
* Use <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>
105
-
1. In the command palette, search for and select **{% data variables.product.prodname_copilot %}: Review and Comment**.
106
-
107
-

108
-
109
-
1. Wait for {% data variables.product.prodname_copilot_short %} to review your changes. This usually takes less than 30 seconds.
110
-
1. If {% data variables.product.prodname_copilot_short %} has any comments, they will be shown inline in your file, and in the **Problems** tab.
100
+
1. Right-click the selected code and choose **Generate Code** > **Review**.
101
+
1. {% data variables.product.prodname_vscode_shortname %} creates review comments in the **Comments** panel and also shows them inline in the editor.
111
102
112
103
### Reviewing all uncommitted changes
113
104
@@ -141,9 +132,6 @@ To provide feedback, hover over the comment and click the thumbs up or thumbs do
141
132
142
133
## Customizing {% data variables.product.prodname_copilot_short %}'s reviews with custom instructions
143
134
144
-
> [!NOTE]
145
-
> {% data reusables.copilot.custom-instructions-ccr-support %}
146
-
147
135
{% data reusables.copilot.code-review.custom-instructions-information %}
0 commit comments