You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/concepts/code-review.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,16 +78,18 @@ By default, {% data variables.product.prodname_copilot_short %} will only review
78
78
79
79
### Triggering an automatic pull request review
80
80
81
-
After you configure automatic code review, {% data variables.product.prodname_copilot_short %} will review pull requests in the following situations:
81
+
The triggers for automatic code review depend on the configuration settings:
82
82
83
-
* When a pull request is created as an "Open" pull request.
84
-
85
-
A review is not triggered if the pull request is created as a "Draft" pull request.
86
-
87
-
* The first time a "Draft" pull request is switched to "Open".
83
+
***Basic setting**:
84
+
* When a pull request is created as an "Open" pull request.
85
+
* The first time a "Draft" pull request is switched to "Open".
86
+
***Review new pushes**:
87
+
* Every time a new commit is pushed to the pull request.
88
+
***Review draft pull requests**:
89
+
* Pull requests are automatically reviewed while they are still drafts—before being switched to "Open".
88
90
89
91
> [!NOTE]
90
-
> {% data variables.product.prodname_copilot_short %} only automatically reviews a pull requestonce. If you make changes to the pull request after it has been automatically reviewed and you want {% data variables.product.prodname_copilot_short %} to re-review the pull request, you must request this manually. To do this, click the {% octicon "sync" aria-label="Re-request review" %} button next to {% data variables.product.prodname_copilot_short %}'s name in the **Reviewers** menu.
92
+
> Unless {% data variables.product.prodname_copilot_short %} has been configured to review each push to a pull request, it will only review the pull request once. If you make changes to the pull request after it has been automatically reviewed and you want {% data variables.product.prodname_copilot_short %} to re-review the pull request, you can request this manually. To do this, click the {% octicon "sync" aria-label="Re-request review" %} button next to {% data variables.product.prodname_copilot_short %}'s name in the **Reviewers** menu.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,13 +75,13 @@ Repository custom instructions are currently supported for:
75
75
76
76
{% vscode %}
77
77
78
-
*The **Use Instruction Files** option must be enabled in your settings. This is enabled by default. See [Enabling or disabling repository custom instructions](#enabling-or-disabling-repository-custom-instructions) later in this article.
78
+
*Custom instructions must be enabled. This feature is enabled by default. See [Enabling or disabling repository custom instructions](#enabling-or-disabling-repository-custom-instructions-1) later in this article.
79
79
80
80
{% endvscode %}
81
81
82
82
{% visualstudio %}
83
83
84
-
* The **Enable custom instructions...** option must be enabled in your settings. This is enabled by default. See [Enabling or disabling repository custom instructions](#enabling-or-disabling-repository-custom-instructions) later in this article.
84
+
* The **Enable custom instructions...** option must be enabled in your settings. This is enabled by default. See [Enabling or disabling repository custom instructions](#enabling-or-disabling-repository-custom-instructions-2) later in this article.
85
85
86
86
{% endvisualstudio %}
87
87
@@ -534,6 +534,8 @@ Your choice persists, for all repositories containing a custom instructions file
534
534
1. In the "Options" dialog, type `custom instructions` in the search box, then click **{% data variables.product.prodname_copilot_short %}**.
535
535
1. Select or clear the checkbox for **Enable custom instructions to be loaded from .github/copilot-instructions.md files and added to requests**.
536
536
537
+

538
+
537
539
{% data reusables.copilot.custom-instructions-enabling-for-ccr %}
Copy file name to clipboardExpand all lines: content/copilot/how-tos/use-copilot-agents/request-a-code-review/configure-automatic-review.md
+4-18Lines changed: 4 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,11 @@ This article tells you how to set up {% data variables.copilot.copilot_code-revi
22
22
23
23
The three sections in this article tell you how to configure automatic code review for:
24
24
25
-
*[Pull requests that you create yourself](#configuring-automatic-code-review-for-all-pull-requests-you-create)
25
+
*[Pull requests that you create yourself](#configuring-automatic-code-review-for-your-own-pull-requests)
26
26
*[All new pull requests in a repository](#configuring-automatic-code-review-for-a-single-repository)
27
27
*[Pull requests in multiple repositories owned by an organization](#configuring-automatic-code-review-for-repositories-in-an-organization)
28
28
29
-
## Configuring automatic code review for all pull requests you create
29
+
## Configuring automatic code review for your own pull requests
30
30
31
31
> [!NOTE]
32
32
> This is only available if you are on the {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} plan.
@@ -45,15 +45,7 @@ The three sections in this article tell you how to configure automatic code revi
45
45
{% data reusables.repositories.repo-rulesets-settings %}
46
46
{% data reusables.repositories.repo-new-ruleset %}
47
47
1. Under "Target branches," click **Add target** and choose one of the options—for example, **Include default branch** or **Include all branches**.
48
-
1. Under "Branch rules," select the **Require a pull request before merging** checkbox.
49
-
50
-
This expands a set of subsidiary options.
51
-
52
-
1. Select the **Request pull request review from {% data variables.product.prodname_copilot_short %}** checkbox.
53
-
54
-

55
-
56
-
1. At the bottom of the page, click **Create**.
48
+
{% data reusables.copilot.auto-code-review-steps %}
57
49
58
50
## Configuring automatic code review for repositories in an organization
59
51
@@ -72,10 +64,4 @@ The three sections in this article tell you how to configure automatic code revi
72
64
> [!NOTE]
73
65
> You can add multiple targeting criteria to the same ruleset. Exclusion patterns are applied after inclusion patterns. For example, you could include any repositories matching the pattern `*cat*`, and specifically exclude a repository matching the pattern `not-a-cat`.
74
66
75
-
1. Under "Target branches," click **Add target** and choose one of the target options.
76
-
1. Under "Branch rules," select the **Require a pull request before merging** checkbox.
77
-
78
-
This expands a set of subsidiary options.
79
-
80
-
1. Select the **Request pull request review from {% data variables.product.prodname_copilot_short %}** checkbox.
81
-
1. At the bottom of the page, click **Create**.
67
+
{% data reusables.copilot.auto-code-review-steps %}
1. Under "Target branches," click **Add target** and choose one of the target options.
2
+
1. Under "Branch rules," select **Automatically request {% data variables.copilot.copilot_code-review_short %}**.
3
+
4
+
This expands a set of subsidiary options.
5
+
6
+

7
+
8
+
1. Optionally, if you want {% data variables.product.prodname_copilot_short %} to review all new pushes to the pull request, select **Review new pushes**.
9
+
10
+
If this option is not selected, {% data variables.product.prodname_copilot_short %} will only review the pull request once.
11
+
12
+
1. Optionally, if you want {% data variables.product.prodname_copilot_short %} to review pull requests while they are still drafts, select the **Review draft pull requests**.
13
+
14
+
This can be a useful option for catching errors early, before requesting a human review.
0 commit comments