Skip to content

Commit 19552e0

Browse files
saritaiCopilotdihydroJenoxidejc-clark
authored
Agentic code review partial GA (including self-hosted runner support) (#59470)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jenni C <97056108+dihydroJenoxide@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
1 parent fb0eee7 commit 19552e0

File tree

7 files changed

+71
-12
lines changed

7 files changed

+71
-12
lines changed

content/copilot/concepts/agents/code-review.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,37 @@ If you include these file types in a pull request, {% data variables.copilot.cop
8282

8383
For more information, see [AUTOTITLE](/copilot/reference/review-excluded-files).
8484

85-
## {% data variables.copilot.copilot_code-review-tools-preview_cap %}
85+
## {% data variables.copilot.copilot_code-review-tools_cap_short %}
8686

8787
> [!NOTE]
8888
>
89-
> * The [AUTOTITLE](/free-pro-team@latest/site-policy/github-terms/github-pre-release-license-terms) apply to your use of this product.
89+
> * The [AUTOTITLE](/free-pro-team@latest/site-policy/github-terms/github-pre-release-license-terms) apply to your use of preview features.
9090
> * {% data variables.copilot.copilot_code-review_short %} has several new tools that are in {% data variables.release-phases.public_preview %} and subject to change.
9191
92-
If you get a {% data variables.product.prodname_copilot_short %} subscription from an organization, you can only participate in the {% data variables.release-phases.public_preview %} on the {% data variables.product.github %} website if an owner of your organization or enterprise has enabled using preview features. See [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) and [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies).
92+
{% data variables.copilot.copilot_code-review_short %} uses full project context gathering to provide more specific, accurate, and contextually aware code reviews. This capability analyzes your entire repository to better understand the context of code changes. Full project context gathering is generally available and enabled automatically for {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} plans.
9393

94-
These new tools are enabled automatically for {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} plans.
94+
{% data variables.copilot.copilot_code-review_short %} includes additional new tools that are in {% data variables.release-phases.public_preview %}:
9595

96-
* **Full project context gathering**. This provides more specific, accurate, and contextually aware code reviews.
96+
* **Support for static analysis tools like {% data variables.product.prodname_codeql %}, ESLint, and PMD**. This delivers more high-signal, consistent findings for security and quality.
9797
* **The ability to pass suggestions to {% data variables.copilot.copilot_coding_agent %}**. This automates creation of a new pull request against your branch with the suggested fixes applied.
9898

99+
These tools are also enabled automatically for {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} plans.
100+
101+
If you get a {% data variables.product.prodname_copilot_short %} subscription from an organization, you can only participate in the {% data variables.release-phases.public_preview %} on the {% data variables.product.github %} website if an owner of your organization or enterprise has enabled using preview features. See [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) and [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies).
102+
99103
You do not need to have {% data variables.product.prodname_code_scanning %} and {% data variables.product.prodname_actions %} enabled in your organization or enterprise to use the {% data variables.copilot.copilot_code-review-tools_short %}.
100104

101105
If {% data variables.product.prodname_actions %} is unavailable or if Actions workflows used by {% data variables.copilot.copilot_code-review_short %} fail, reviews will still be generated. However, they will not include the additional features provided by the {% data variables.copilot.copilot_code-review-tools_short %}.
102106

103107
> [!NOTE]
104108
>
105-
> The {% data variables.release-phases.public_preview %} includes free actions minutes for the {% data variables.copilot.copilot_code-review-tools_short %}.
106-
>
107-
> Usage charges will apply when the feature becomes generally available.
109+
> The {% data variables.release-phases.public_preview %} includes free actions minutes for the new {% data variables.copilot.copilot_code-review-tools_short %}.
110+
111+
## Usage of {% data variables.product.prodname_actions %} runners for tools in code review
112+
113+
{% data reusables.copilot.code-review.code-review-actions-usage %}
114+
115+
Organizations in this situation can use self-hosted runners. For more information, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/configure-self-hosted-runners).
108116

109117
## Code review monthly quota
110118

content/copilot/get-started/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ A command line interface that lets you use {% data variables.product.prodname_co
4545

4646
AI-generated code review suggestions to help you write better code. See [AUTOTITLE](/copilot/using-github-copilot/code-review/using-copilot-code-review).
4747

48-
{% data variables.copilot.copilot_code-review-tools_cap_short %} is in {% data variables.release-phases.public_preview %} and subject to change. See [AUTOTITLE](/copilot/concepts/agents/code-review).
48+
Several {% data variables.copilot.copilot_code-review-tools_short %} are in {% data variables.release-phases.public_preview %} and subject to change. See [AUTOTITLE](/copilot/concepts/agents/code-review).
4949

5050
### {% data variables.copilot.copilot_for_prs %}
5151

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Configuring self-hosted runners for GitHub Copilot code review
3+
shortTitle: Configure self-hosted runners
4+
intro: 'Learn how to configure self-hosted runners for {% data variables.copilot.copilot_code-review_short %}.'
5+
allowTitleToDifferFromFilename: true
6+
versions:
7+
feature: copilot
8+
topics:
9+
- Copilot
10+
contentType: how-tos
11+
category:
12+
- Author and optimize with Copilot
13+
---
14+
15+
## About {% data variables.product.prodname_actions %} usage for code review tools
16+
17+
{% data reusables.copilot.code-review.code-review-actions-usage %} Organizations in this situation can use self-hosted runners.
18+
19+
## Configuring self-hosted runners for code review
20+
21+
You can run {% data variables.copilot.copilot_code-review_short %} using self-hosted {% data variables.product.prodname_actions %} runners with ARC (Actions Runner Controller). You must first set up ARC-managed scale sets in your environment. For more information on ARC, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/about-actions-runner-controller).
22+
23+
> [!WARNING]
24+
> ARC is the only officially supported solution for self-hosting {% data variables.copilot.copilot_code-review_short %}. For security reasons, we do not recommend using non-ARC self-hosted runners.
25+
26+
> [!NOTE]
27+
> {% data variables.copilot.copilot_code-review_short %} is only compatible with Ubuntu x64 Linux runners. Runners with Windows, macOS or other operating systems are not supported.
28+
29+
To configure self-hosted runners for {% data variables.copilot.copilot_code-review_short %}:
30+
31+
1. Configure network security controls for your {% data variables.product.prodname_actions %} runners to ensure that {% data variables.copilot.copilot_code-review_short %} does not have open access to your network or the public internet.
32+
33+
You must configure your firewall to allow connections to the [standard hosts required for {% data variables.product.prodname_actions %} self-hosted runners](/actions/reference/runners/self-hosted-runners#accessible-domains-by-function), plus the following hosts:
34+
35+
* `api.githubcopilot.com`
36+
* `uploads.github.com`
37+
* `user-images.githubusercontent.com`
38+
1. In your `copilot-setup-steps.yml` file, set the `runs-on` attribute to your ARC-managed scale set name. For more information, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment#preinstalling-tools-or-dependencies-in-copilots-environment).
39+
40+
```yaml
41+
# ...
42+
43+
jobs:
44+
copilot-setup-steps:
45+
runs-on: arc-scale-set-name
46+
# ...
47+
```

content/copilot/how-tos/use-copilot-agents/request-a-code-review/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ topics:
99
children:
1010
- /use-code-review
1111
- /configure-automatic-review
12+
- /configure-self-hosted-runners
1213
redirect_from:
1314
- /copilot/using-github-copilot/code-review
1415
- /copilot/how-tos/agents/copilot-code-review
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% data variables.copilot.copilot_code-review_short %} uses {% data variables.product.prodname_actions %} to run the {% data variables.copilot.copilot_code-review-tools_short %}, including full project context gathering and the additional tools in {% data variables.release-phases.public_preview %}. By default, {% data variables.copilot.copilot_code-review_short %} uses {% data variables.product.prodname_dotcom %}-hosted runners.
2+
3+
If your organization has disabled {% data variables.product.prodname_dotcom %}-hosted runners, the new {% data variables.copilot.copilot_code-review-tools_short %} will not be available. In this case, code reviews will fall back to a more limited review.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* {% data variables.copilot.copilot_code-review-tools_cap_short %} are in {% data variables.release-phases.public_preview %} and subject to change.
1+
* Several {% data variables.copilot.copilot_code-review-tools_short %} are in {% data variables.release-phases.public_preview %} and subject to change.
22
* The [AUTOTITLE](/free-pro-team@latest/site-policy/github-terms/github-pre-release-license-terms) apply to your use of this product.

data/variables/copilot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ chat_completions_api: 'https://api.githubcopilot.com/chat/completions'
4343
copilot_code-review: 'GitHub Copilot code review'
4444
copilot_code-review_short: 'Copilot code review'
4545
copilot_code-review-tools-preview_cap: 'New tools (public preview) in GitHub Copilot code review'
46-
copilot_code-review-tools_short: 'new tools in Copilot code review'
47-
copilot_code-review-tools_cap_short: 'New tools in Copilot code review'
46+
copilot_code-review-tools_short: 'tools in Copilot code review'
47+
copilot_code-review-tools_cap_short: 'Tools in Copilot code review'
4848

4949
## Copilot coding agent (previously Padawan) -> {% data variables.copilot.copilot_coding_agent %}
5050
copilot_coding_agent: 'Copilot coding agent'

0 commit comments

Comments
 (0)