From beb429091a260d39fd19f10cef5734ae17556c84 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Fri, 11 Jul 2025 07:37:24 +0100 Subject: [PATCH] Document Copilot Code Review in GitHub Mobile (#56496) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../using-copilot-code-review.md | 60 ++++++++++++++----- .../copilot/code-review/availability.md | 1 + .../copilot/code-review/enable-for-orgs.md | 1 + .../code-review/premium-reqs-monthly-quota.md | 9 +++ src/tools/lib/all-tools.ts | 1 + 5 files changed, 58 insertions(+), 14 deletions(-) create mode 100644 data/reusables/copilot/code-review/availability.md create mode 100644 data/reusables/copilot/code-review/enable-for-orgs.md create mode 100644 data/reusables/copilot/code-review/premium-reqs-monthly-quota.md diff --git a/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md b/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md index 642baa40106f..f85d1eb9ab26 100644 --- a/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md +++ b/content/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review.md @@ -12,6 +12,7 @@ redirect_from: - /early-access/copilot/code-reviews/using-copilot-code-review - /early-access/copilot/code-reviews/using-copilot-code-reviews - /copilot/using-github-copilot/code-review/using-copilot-code-review + - /copilot/code-review --- ## About {% data variables.copilot.copilot_code-review_short %} @@ -44,11 +45,7 @@ The current functionality and availability of the two types of review is summari The **review changes** type of {% data variables.copilot.copilot_code-review_short %} is a premium feature with a per-person monthly quota. -When you assign {% data variables.product.prodname_copilot_short %} as a reviewer for a pull request, one premium request is deducted from your monthly quota each time {% data variables.product.prodname_copilot_short %} posts comments to the pull request. 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. - -When you reach your monthly quota you will not be able to get a code review from {% data variables.product.prodname_copilot_short %} until your quota resets—unless you upgrade your {% data variables.product.prodname_copilot_short %} plan or enable additional premium requests. +{% data reusables.copilot.code-review.premium-reqs-monthly-quota %} {% endvscode %} @@ -63,23 +60,47 @@ This version of the article relates to {% data variables.copilot.copilot_code-re ### Availability -{% data variables.copilot.copilot_code-review_short %} on the {% data variables.product.github %} website is a premium feature, available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plans. +{% data reusables.copilot.code-review.availability %} + +{% data reusables.copilot.code-review.enable-for-orgs %} ### Code review monthly quota The **review changes** type of {% data variables.copilot.copilot_code-review_short %} is a premium feature with a per-person monthly quota. -When you assign {% data variables.product.prodname_copilot_short %} as a reviewer for a pull request, one premium request is deducted from your monthly quota each time {% data variables.product.prodname_copilot_short %} posts comments to the pull request. See [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests). +{% data reusables.copilot.code-review.premium-reqs-monthly-quota %} -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. +{% endwebui %} -When you reach your monthly quota you will not be able to get a code review from {% data variables.product.prodname_copilot_short %} until your quota resets—unless you upgrade your {% data variables.product.prodname_copilot_short %} plan or enable additional premium requests. +{% mobile %} -### Language support +### Availability -{% data variables.copilot.copilot_code-review_short %} on the {% data variables.product.github %} website supports all languages. +{% data reusables.copilot.code-review.availability %} -{% endwebui %} +{% data reusables.copilot.code-review.enable-for-orgs %} + +### Code review monthly quota + +{% data variables.copilot.copilot_code-review_short %} is a premium feature with a per-person monthly quota. + +{% data reusables.copilot.code-review.premium-reqs-monthly-quota %} + +{% endmobile %} + +{% visualstudio %} + +### Availability + +{% data reusables.copilot.code-review.availability %} + +### Code review monthly quota + +{% data variables.copilot.copilot_code-review_short %} is a premium feature with a per-person monthly quota. + +{% data reusables.copilot.code-review.premium-reqs-monthly-quota %} + +{% endvisualstudio %} ### Validating {% data variables.product.prodname_copilot_short %} code reviews @@ -93,8 +114,6 @@ For more information, see [AUTOTITLE](/copilot/responsible-use-of-github-copilot These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in the {% data variables.product.github %} website. To see instructions for other popular coding environments, use the tool switcher at the top of the page. -### Requesting a pull request review from {% data variables.product.prodname_copilot_short %} - 1. On {% data variables.product.prodname_dotcom_the_website %}, create a pull request or navigate to an existing pull request. 1. Open the **Reviewers** menu, then select **{% data variables.product.prodname_copilot_short %}**. @@ -248,3 +267,16 @@ To use {% data variables.copilot.copilot_code-review_short %}, you must use {% d For more information on enabling and configuring {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_vs %}, see [Review local changes with {% data variables.copilot.copilot_chat_short %}](https://learn.microsoft.com/en-us/visualstudio/version-control/git-make-commit?view=vs-2022#review-local-changes-with-copilot-chat) in the {% data variables.product.prodname_vs %} documentation. {% endvisualstudio %} + +{% mobile %} + +These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_mobile %}. To see instructions for other popular coding environments, use the tool switcher at the top of the page. + +1. In {% data variables.product.prodname_mobile %}, open a pull request. +1. Scroll down to the **Reviews** section and expand it. +1. Click **Request Reviews**. +1. Add {% data variables.product.prodname_copilot_short %} as a reviewer, then click **Done**. + +{% data variables.product.prodname_copilot_short %} will review the changes and provide feedback. + +{% endmobile %} diff --git a/data/reusables/copilot/code-review/availability.md b/data/reusables/copilot/code-review/availability.md new file mode 100644 index 000000000000..79feec12c64c --- /dev/null +++ b/data/reusables/copilot/code-review/availability.md @@ -0,0 +1 @@ +{% data variables.copilot.copilot_code-review %} is available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plans. diff --git a/data/reusables/copilot/code-review/enable-for-orgs.md b/data/reusables/copilot/code-review/enable-for-orgs.md new file mode 100644 index 000000000000..3bc3d5426571 --- /dev/null +++ b/data/reusables/copilot/code-review/enable-for-orgs.md @@ -0,0 +1 @@ +If you receive {% data variables.product.prodname_copilot_short %} from an organization, then to be able to request a review from {% data variables.product.prodname_copilot_short %}, **{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}** must be enabled in the {% data variables.product.prodname_copilot_short %} policy settings for the organization. See [AUTOTITLE](/copilot/how-tos/administer/organizations/managing-policies-for-copilot-in-your-organization). diff --git a/data/reusables/copilot/code-review/premium-reqs-monthly-quota.md b/data/reusables/copilot/code-review/premium-reqs-monthly-quota.md new file mode 100644 index 000000000000..e42178f3fd96 --- /dev/null +++ b/data/reusables/copilot/code-review/premium-reqs-monthly-quota.md @@ -0,0 +1,9 @@ +When you assign {% data variables.product.prodname_copilot_short %} as a reviewer for a pull request, one premium request is deducted from your monthly quota each time {% data variables.product.prodname_copilot_short %} posts comments to the pull request. 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. + +When you reach your monthly quota you will not be able to get a code review from {% data variables.product.prodname_copilot_short %} until your quota resets—unless you upgrade your {% data variables.product.prodname_copilot_short %} plan or enable additional premium requests. + +### Language support + +{% data variables.copilot.copilot_code-review_short %} supports all languages. diff --git a/src/tools/lib/all-tools.ts b/src/tools/lib/all-tools.ts index 0e56aff7b196..0eb961e1d67c 100644 --- a/src/tools/lib/all-tools.ts +++ b/src/tools/lib/all-tools.ts @@ -22,6 +22,7 @@ export const allTools: ToolsMapping = { javascript: 'JavaScript', jetbrains: 'JetBrains IDEs', jetbrains_beta: 'JetBrains IDEs (Beta)', + mobile: 'Mobile', skillsets: 'Skillsets', vimneovim: 'Vim/Neovim', powershell: 'PowerShell',