Skip to content

Commit 029b102

Browse files
Add Copilot code review to AI governance journey (#61335)
Co-authored-by: Laura Coursen <lecoursen@github.com>
1 parent 042d99c commit 029b102

8 files changed

Lines changed: 88 additions & 76 deletions

File tree

content/copilot/get-started/enterprise-ai-governance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ journeyTracks:
3535
- href: '/copilot/tutorials/cloud-agent/give-access-to-resources'
3636
- href: '/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise'
3737
- href: '/copilot/tutorials/copilot-cli-hooks'
38+
- href: '/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/enable-copilot-code-review'
3839
- href: '/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/monitor-agentic-activity'
3940
---
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Blocking agentic features in your enterprise
3+
intro: Disable features for all users and repositories.
4+
permissions: Enterprise owners and AI managers
5+
versions:
6+
feature: copilot
7+
shortTitle: Block agentic features
8+
contentType: how-tos
9+
category:
10+
- Manage Copilot for a team
11+
allowTitleToDifferFromFilename: true
12+
redirect_from:
13+
- /copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/block-copilot-cloud-agent
14+
---
15+
16+
Most {% data variables.product.prodname_copilot_short %} policies only affect users who receive a {% data variables.product.prodname_copilot_short %} license from your enterprise or organizations. However, there are dedicated policies to completely disable features in your repositories, including for users who get access to {% data variables.product.prodname_copilot_short %} from a personal plan or another enterprise.
17+
18+
## Blocking {% data variables.copilot.copilot_cloud_agent %}
19+
20+
{% data reusables.enterprise-accounts.access-enterprise %}
21+
{% data reusables.enterprise-accounts.ai-controls-tab %}
22+
{% data reusables.enterprise-accounts.cca-policies %}
23+
1. Next to **Block {% data variables.copilot.copilot_cloud_agent %} in all repositories owned by ENTERPRISE-NAME**, click the toggle.
24+
25+
## Blocking {% data variables.copilot.copilot_code-review_short %}
26+
27+
{% data reusables.enterprise-accounts.access-enterprise %}
28+
{% data reusables.enterprise-accounts.ai-controls-tab %}
29+
1. In the left sidebar, click {% octicon "agent" aria-hidden="true" aria-label="agent" %} **Agents**.
30+
1. Under "Available Agents", click **{% data variables.copilot.copilot_code-review_short %}**.
31+
1. Next to **Block {% data variables.copilot.copilot_code-review_short %} in all enterprise repositories**, click the toggle.

content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/block-copilot-cloud-agent.md

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Enabling GitHub Copilot code review in your enterprise
3+
intro: Apply consistent standards by having {% data variables.product.prodname_copilot_short %} review every pull request.
4+
allowTitleToDifferFromFilename: true
5+
permissions: Enterprise owners
6+
versions:
7+
feature: copilot
8+
shortTitle: Enable {% data variables.copilot.copilot_code-review_short %}
9+
redirect_from:
10+
- /copilot/how-tos/administer-copilot/manage-for-enterprise/manage-copilot-code-review
11+
- /copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/manage-copilot-code-review
12+
contentType: how-tos
13+
category:
14+
- Manage Copilot for a team
15+
---
16+
17+
<!-- expires 2026-06-01 -->
18+
19+
{% data reusables.copilot.code-review-actions-minutes-note %}
20+
21+
<!-- end expires 2026-06-01 -->
22+
23+
{% data variables.product.prodname_copilot %} can review pull requests in your enterprise. This can save time for human reviewers by detecting bugs or vulnerabilities and enforcing consistent coding standards.
24+
25+
## Enabling {% data variables.copilot.copilot_code-review_short %} for your {% data variables.product.prodname_copilot_short %} subscribers
26+
27+
The policy for {% data variables.copilot.copilot_code-review_short %} allows your licensed users to request reviews from {% data variables.product.prodname_copilot_short %} and use {% data variables.product.prodname_copilot_short %} to generate pull request summaries.
28+
29+
{% data reusables.enterprise-accounts.access-enterprise %}
30+
{% data reusables.enterprise-accounts.ai-controls-tab %}
31+
1. Scroll down to "Available Agents", then click **{% data variables.copilot.copilot_code-review_short %}**.
32+
1. Next to "{% data variables.copilot.copilot_code-review_short %}", select a policy.
33+
34+
{% data reusables.enterprise-accounts.policy-enablement-next-steps %}
35+
36+
## Configuring automatic code review
37+
38+
To apply standards consistently, you can configure {% data variables.copilot.copilot_code-review_short %} to run automatically on all pull requests opened across your enterprise or in specific repositories.
39+
40+
1. Create an enterprise-level branch ruleset. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-governance).
41+
1. Target the organizations and repositories where {% data variables.copilot.copilot_code-review_short %} should run automatically. You may want to start with a small selection of repositories and run a trial to collect feedback.
42+
1. Enable the **Automatically request {% data variables.copilot.copilot_code-review_short %}** policy.
43+
1. Optionally, enable the additional settings. By reviewing on every push and reviewing draft pull requests, you will add consistency to the review process. However, you will also create more noise for developers. If you're running a pilot, consider starting with the basic setting to allow developers to get used to the new process first.
44+
1. Click **Create**.
45+
46+
## Customizing reviews
47+
48+
Encourage organization and repository administrators to create custom instructions for {% data variables.copilot.copilot_code-review_short %} so that reviews will be tailored to your coding standards and conventions. See [AUTOTITLE](/copilot/tutorials/customize-code-review).

content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ children:
99
- /configure-enterprise-plugin-standards
1010
- /monitor-agentic-activity
1111
- /enable-copilot-cloud-agent
12-
- /block-copilot-cloud-agent
13-
- /manage-copilot-code-review
12+
- /block-agentic-features
13+
- /enable-copilot-code-review
1414
contentType: how-tos
1515
---
1616

content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/manage-copilot-code-review.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/journeys/lib/journey-path-resolver.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export interface JourneyContext {
3333
export interface JourneyTrack {
3434
id: string
3535
title: string
36-
description?: string
37-
timeCommitment?: string
36+
description: string | null
37+
timeCommitment: string | null
3838
guides: Array<{
3939
href: string
4040
title: string
@@ -352,8 +352,8 @@ export async function resolveJourneyTracks(
352352
return {
353353
id: track.id,
354354
title: renderedTitle,
355-
description: renderedDescription,
356-
timeCommitment: renderedTimeCommitment,
355+
description: renderedDescription || null,
356+
timeCommitment: renderedTimeCommitment || null,
357357
guides,
358358
}
359359
}),

src/journeys/tests/journey-path-resolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ describe('journey-path-resolver', () => {
304304

305305
const result = await resolveJourneyTracks(trackWithoutDescription, mockContext)
306306

307-
expect(result[0].description).toBeUndefined()
308-
expect(result[0].timeCommitment).toBeUndefined()
307+
expect(result[0].description).toBeNull()
308+
expect(result[0].timeCommitment).toBeNull()
309309
})
310310
})
311311

0 commit comments

Comments
 (0)