Skip to content

Commit 623260f

Browse files
ria-gopuCopilotcrwaters16
authored
Mention Copilot code review API support in CCR docs (#64590)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Claire W <78226508+crwaters16@users.noreply.github.com>
1 parent ce25bc8 commit 623260f

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,13 @@ You can configure how {% data variables.copilot.copilot_code-review_short %} com
168168
* **Let organizations decide**: Organization owners can choose whether to enable {% data variables.product.prodname_copilot_short %} approvals.
169169
* **Enable for selected organizations**: {% data variables.product.prodname_copilot_short %} approvals are enabled only for the organizations you select.
170170
* **Disabled everywhere**: Organizations cannot enable {% data variables.product.prodname_copilot_short %} approvals. This is the default.
171+
172+
## Configuring {% data variables.copilot.copilot_code-review_short %} with the API
173+
174+
You can use the {% data variables.product.github %} REST and GraphQL APIs to manage some {% data variables.copilot.copilot_code-review_short %} settings.
175+
176+
* **Enterprise**: Enable or disable {% data variables.copilot.copilot_code-review_short %} for all organizations, or let organization owners decide.
177+
* **Organization**: Enable or disable {% data variables.copilot.copilot_code-review_short %} when the enterprise lets organization owners decide, set the default review effort level, and configure the runner that {% data variables.copilot.copilot_code-review_short %} uses.
178+
* **Repository**: Set the review effort level and choose whether reviews use custom instructions and MCP servers.
179+
180+
Other settings on this page, such as maximum review effort, billing, and approvals, are not available through the API. For more information, see [GraphQL API reference for {% data variables.product.prodname_copilot_short %}](/graphql/reference/copilot).

‎content/copilot/how-tos/copilot-on-github/use-copilot-agents/copilot-code-review.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ By default, {% data variables.product.prodname_copilot_short %} leaves a "Commen
2929

3030
{% data variables.product.prodname_copilot_short %}'s review comments work like comments from human reviewers. Add reactions, reply, resolve, or hide them. Any replies you add are visible to other people but not to {% data variables.product.prodname_copilot_short %}.
3131

32-
You can also request a review from {% data variables.product.prodname_copilot_short %} through the {% data variables.product.github %} REST API by requesting `copilot-pull-request-reviewer[bot]` as a reviewer. For more information, see [AUTOTITLE](/rest/pulls/review-requests#request-reviewers-for-a-pull-request).
32+
You can also use the {% data variables.product.github %} REST API to request reviews from {% data variables.product.prodname_copilot_short %} and to identify reviews and comments from {% data variables.copilot.copilot_code-review_short %}. For more information, see [AUTOTITLE](/rest/pulls/review-requests#request-reviewers-for-a-pull-request), [AUTOTITLE](/rest/pulls/reviews), and [AUTOTITLE](/rest/pulls/comments).
3333

3434
## Work with suggested changes
3535

‎content/copilot/how-tos/use-copilot-agents/use-code-review.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ These instructions explain how to use {% data variables.copilot.copilot_code-rev
6464

6565
Any comments you add to {% data variables.product.prodname_copilot_short %}'s review comments will be visible to humans, but they won't be visible to {% data variables.product.prodname_copilot_short %}, and {% data variables.product.prodname_copilot_short %} won't reply.
6666

67-
You can also request a review from {% data variables.product.prodname_copilot_short %} through the {% data variables.product.github %} REST API by requesting `copilot-pull-request-reviewer[bot]` as a reviewer. For more information, see [AUTOTITLE](/rest/pulls/review-requests#request-reviewers-for-a-pull-request).
67+
You can also use the {% data variables.product.github %} REST API to request reviews from {% data variables.product.prodname_copilot_short %} and to identify reviews and comments from {% data variables.copilot.copilot_code-review_short %}. For more information, see [AUTOTITLE](/rest/pulls/review-requests#request-reviewers-for-a-pull-request), [AUTOTITLE](/rest/pulls/reviews), and [AUTOTITLE](/rest/pulls/comments).
6868

6969
## Enabling automatic reviews
7070

0 commit comments

Comments
 (0)