Skip to content

Commit 47fb61d

Browse files
authored
Updates on configuring runners for agentic Copilot code review (#60362)
1 parent 31396cc commit 47fb61d

File tree

3 files changed

+39
-7
lines changed

3 files changed

+39
-7
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,16 @@ If {% data variables.product.prodname_actions %} is unavailable or if Actions wo
9797

9898
### Usage of {% data variables.product.prodname_actions %} runners for agentic capabilities in code review
9999

100-
{% data variables.copilot.copilot_code-review_short %} uses free minutes for {% data variables.product.prodname_actions %} to run the agentic capabilities, including full project context gathering and any capabilities in {% data variables.release-phases.public_preview %}. By default, {% data variables.copilot.copilot_code-review_short %} uses {% data variables.product.prodname_dotcom %}-hosted runners.
100+
{% data variables.copilot.copilot_code-review_short %} uses free minutes for {% data variables.product.prodname_actions %} to run the agentic capabilities, including full project context gathering and any capabilities in {% data variables.release-phases.public_preview %}. By default, {% data variables.copilot.copilot_code-review_short %} uses {% data variables.product.prodname_dotcom %}-hosted runners. You can also upgrade to larger {% data variables.product.prodname_dotcom %}-hosted runners for better performance.
101+
102+
> [!NOTE]
103+
> Usage of larger {% data variables.product.prodname_dotcom %}-hosted runners is billed per-minute and may incur additional {% data variables.product.prodname_actions %} charges.
101104
102105
You do not need to have {% data variables.product.prodname_actions %} enabled in your organization or enterprise to use the agentic capabilities in code review.
103106

104-
If your organization has disabled {% data variables.product.prodname_dotcom %}-hosted runners, the agentic capabilities will not be available. In this case, code reviews will fall back to a more limited review.
107+
If your organization has disabled {% data variables.product.prodname_dotcom %}-hosted runners, the agentic capabilities will not be available. In this case, code reviews will fall back to a more limited review. Organizations in this situation can use self-hosted runners.
105108

106-
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).
109+
For more information on configuring runners, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/configure-runners).
107110

108111
## Code review monthly quota
109112

content/copilot/how-tos/use-copilot-agents/request-a-code-review/configure-self-hosted-runners.md renamed to content/copilot/how-tos/use-copilot-agents/request-a-code-review/configure-runners.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
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 %}.'
2+
title: Configuring runners for GitHub Copilot code review
3+
shortTitle: Configure runners
4+
intro: 'Learn how to configure self-hosted runners or upgrade to larger {% data variables.product.prodname_dotcom %}-hosted runners for {% data variables.copilot.copilot_code-review_short %}.'
55
allowTitleToDifferFromFilename: true
6+
redirect_from:
7+
- /copilot/how-tos/use-copilot-agents/request-a-code-review/configure-self-hosted-runners
68
versions:
79
feature: copilot
810
contentType: how-tos
@@ -14,6 +16,8 @@ category:
1416

1517
{% data reusables.copilot.code-review.code-review-actions-usage %} Organizations in this situation can use self-hosted runners.
1618

19+
You can also upgrade to larger {% data variables.product.prodname_dotcom %}-hosted runners for better performance.
20+
1721
## Configuring self-hosted runners for code review
1822

1923
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).
@@ -43,3 +47,28 @@ To configure self-hosted runners for {% data variables.copilot.copilot_code-revi
4347
runs-on: arc-scale-set-name
4448
# ...
4549
```
50+
51+
## Upgrading to larger {% data variables.product.prodname_dotcom %}-hosted {% data variables.product.prodname_actions %} runners
52+
53+
By default, {% data variables.copilot.copilot_code-review_short %} works in a standard {% data variables.product.prodname_actions %} runner. You can upgrade to larger runners for better performance (CPU and memory), more disk space, and advanced features like Azure private networking. For more information, see [AUTOTITLE](/actions/using-github-hosted-runners/using-larger-runners/about-larger-runners).
54+
55+
> [!NOTE]
56+
> Usage of larger {% data variables.product.prodname_dotcom %}-hosted runners is billed per-minute and may incur additional {% data variables.product.prodname_actions %} charges.
57+
58+
1. Set up larger runners for your organization. For more information, see [AUTOTITLE](/actions/using-github-hosted-runners/managing-larger-runners).
59+
1. If you are using larger runners with Azure private networking, configure your Azure private network to allow outbound access to the following hosts:
60+
61+
* `api.githubcopilot.com`
62+
* `uploads.github.com`
63+
* `user-images.githubusercontent.com`
64+
65+
1. In your `copilot-setup-steps.yml` file, set the `runs-on` attribute to the label for the larger runners you want {% data variables.copilot.copilot_code-review_short %} to use. For more information on specifying larger runners with `runs-on`, see [AUTOTITLE](/actions/using-github-hosted-runners/running-jobs-on-larger-runners).
66+
67+
```yaml
68+
# ...
69+
70+
jobs:
71+
copilot-setup-steps:
72+
runs-on: ubuntu-4-core
73+
# ...
74+
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ versions:
77
children:
88
- /use-code-review
99
- /configure-automatic-review
10-
- /configure-self-hosted-runners
10+
- /configure-runners
1111
redirect_from:
1212
- /copilot/using-github-copilot/code-review
1313
- /copilot/how-tos/agents/copilot-code-review

0 commit comments

Comments
 (0)