Set up Code Review
Show diff (110 lines)
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -7,7 +7,7 @@
Access| Needed for
---|---
[Owner role](</docs/en/server-managed-settings#access-control>) in your Claude organization| Every step on the admin page
-Owner of the GitHub organization| Installing the Claude GitHub App and [linking it to your Claude organization](</docs/en/admin-setup#connected-github-accounts>). If you aren’t an owner, have one install and link the app before you start
+Owner of the GitHub organization| Installing the Claude GitHub App and [linking it to your Claude organization](</docs/en/admin-setup#connected-github-accounts>). If that’s someone else, have them install and link the app before you start
Write access to each repository you add, from the GitHub account you connect to Claude| Adding the repository
## Turn on Code Review
@@ -28,7 +28,7 @@
Install the Claude GitHub App
-If the repositories you want are listed in the **Add a repository** dialog, or you find them by searching there, go on to the next step. The dialog lists a repository only if the Claude GitHub App can access it, so if they aren’t there, install the app:
+If the repositories you want are listed in the **Add a repository** dialog, or you find them by searching there, go on to the next step. Otherwise, install the Claude GitHub App, because the dialog lists only repositories the app can access:
* Click **Install GitHub App**. When no repositories are listed, it’s a button in the dialog. Otherwise, it’s at the bottom of the dialog’s GitHub organization filter menu. GitHub’s install page opens in a new tab.
* Pick the GitHub organization that owns the repositories.
@@ -41,19 +41,19 @@
Choose repositories
-Select the repositories you want reviewed, then click the button that adds them, which reads **Add 2 repositories** when you’ve selected two. Adding a repository needs write access to it from the GitHub account you connected. You can add more repositories later.
+Select the repositories you want reviewed, then click the button that adds them, which reads **Add 2 repositories** when you’ve selected two. You need write access to each repository from the GitHub account you connected. You can add more repositories later.
5
Click Turn on
-In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want [PR Steward](</docs/en/pr-steward>) on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added and nothing is turned on. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
+In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want [PR Steward](</docs/en/pr-steward>) on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
6
Verify with a test pull request
-Open a test pull request in one of the repositories you added, and don’t mark it as a draft. A check run named **Claude Code Review** appears within a few minutes. If you already set the repository to **Manual (@claude review)** , comment `@claude review` on the pull request to start the first review.If no check run appears, see [No check run appears on the test pull request](</docs/en/code-review-troubleshooting#no-check-run-appears-on-the-test-pull-request>).Once the review arrives, send your developers [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>), which covers the severity levels, the comment commands, and how to respond to findings.
+Open a test pull request that’s ready for review in one of the repositories you added. A check run named **Claude Code Review** appears within a few minutes. If you already set the repository to **Manual (@claude review)** , comment `@claude review` on the pull request to start the first review.If no check run appears, see [No check run appears on the test pull request](</docs/en/code-review-troubleshooting#no-check-run-appears-on-the-test-pull-request>).Once the review arrives, send your developers [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>), which covers the severity levels, the comment commands, and how to respond to findings.
## Set defaults for your organization
@@ -70,17 +70,17 @@
Deep| The most thorough pass. Takes the longest and costs the most
* **Organization default** : select a level under **Review level** and confirm with **Change level**. Every repository uses it unless you give that repository its own.
- * **One repository** : click **Edit** on the repository’s row, then select a **Review level** there. The first option, **Default** , follows the organization. The level saves as soon as you select it.
+ * **One repository** : click **Edit** on the repository’s row, then select a **Review level** there. To follow the organization’s level, select the first option, **Default**. The level saves as soon as you select it.
A new level applies to reviews that start after the change. For what else drives the cost of each review, see [Code Review costs and usage](</docs/en/code-review-costs>).
### Set when reviews run
-Each repository has its own **Review runs** setting, which decides when its pull requests get reviewed.
+Use each repository’s **Review runs** setting to choose when its pull requests get reviewed.
* **Once after PR creation** : a review runs when a pull request is opened, reopened, or marked ready for review
* **After every push** : a review runs on pushes to the pull request branch, catching new issues as the pull request evolves and auto-resolving threads when you fix flagged issues
- * **Manual (@claude review)** : opening or pushing to a pull request doesn’t start a review. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
+ * **Manual (@claude review)** : a review runs on request. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting on the [**Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>) page, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option:
@@ -96,7 +96,7 @@
* **The repository is set to Manual** : how to request a review with a comment
* **The pull request comes from a fork** : that a maintainer can request the review
- * **A bot, or someone without write access who isn’t the pull request’s author, comments`@claude review`**: that no review was started, and who can request one
+ * **A bot comments`@claude review`, or someone without write access comments it on someone else’s pull request**: who can request a review
* **The GitHub organization isn’t linked to your Claude organization** : that reviews are paused, and how to link it
Turn the setting off to stop these comments.
@@ -113,7 +113,7 @@
## Manage repositories
-You can add repositories one at a time or cover a whole GitHub organization at once, and stop reviews wherever you don’t want them.
+You can add repositories, cover a whole GitHub organization, or turn off Code Review or remove a repository.
### Add more repositories
@@ -121,23 +121,22 @@
* **A Connect GitHub dialog opens first** : follow the step Connect your GitHub account, which ends with **Add a repository** open
* **A repository isn’t listed** : see [A repository isn’t listed in Add a repository](</docs/en/code-review-troubleshooting#a-repository-isn%E2%80%99t-listed-in-add-a-repository>).
- * **You want every repository in a GitHub organization** : cover the organization instead of selecting repositories one at a time
+ * **You want every repository in a GitHub organization** : cover the organization
* **These are your organization’s first repositories** : the **Choose what Claude does on these repositories** dialog follows. Set its checkboxes as in the step Click Turn on, then click its button, which reads **Turn on** or **Done**. Either way, Code Review is on afterward.
### Cover a whole GitHub organization
-To turn on Code Review for every repository in a GitHub organization, set **Review runs** on the organization’s row in the **Repositories** table. That covers every repository there that the Claude GitHub App can access, including repositories added later. This can raise spend significantly. It requires all of these:
+To turn on Code Review for every repository in a GitHub organization, set **Review runs** on the organization’s row in the **Repositories** table. Code Review then covers the repositories there that the Claude GitHub App can access, including repositories added later. This can raise spend significantly. You need all of these:
* The GitHub account you connected to Claude is an owner of that GitHub organization.
- * The organization is on github.com. GitHub Enterprise Server instances and personal GitHub accounts aren’t eligible.
+ * The organization is on github.com. Personal GitHub accounts aren’t eligible.
* A [monthly spend limit](</docs/en/code-review-costs#limit-your-spend>) is set, for your Claude organization or for Code Review.
To cover the organization, click **Edit** on its row, select a **Review runs** option, and confirm. The options are the three from Set when reviews run plus **Off**. After you confirm, these changes take effect:
* **Selected repositories** : if the Claude GitHub App was installed on selected repositories rather than all of them, Claude reviews those repositories; change the app’s repository access on GitHub to cover the rest.
- * **Existing settings** : every repository in that GitHub organization takes the option you select, including repositories you had set individually. Setting the row again does the same. Repositories you turned off on their own rows stay off.
+ * **Existing settings** : each time you set the row, every repository in that GitHub organization takes the option you select, including repositories you had set individually. Repositories you turned off on their own rows stay off.
* **Individual changes afterward** : a repository you later set differently from its organization is marked **Custom** in the table.
- * **Review level** : an organization row has no review level of its own.
### Turn off Code Review or remove a repository
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -134,7 +134,7 @@
To cover the organization, click **Edit** on its row, select a **Review runs** option, and confirm. The options are the three from Set when reviews run plus **Off**. After you confirm, these changes take effect:
- * **Coverage** : each repository is covered from its next pull request. If the Claude GitHub App was installed on selected repositories rather than all of them, Claude reviews those repositories; change the app’s repository access on GitHub to cover the rest.
+ * **Selected repositories** : if the Claude GitHub App was installed on selected repositories rather than all of them, Claude reviews those repositories; change the app’s repository access on GitHub to cover the rest.
* **Existing settings** : every repository in that GitHub organization takes the option you select, including repositories you had set individually. Setting the row again does the same. Repositories you turned off on their own rows stay off.
* **Individual changes afterward** : a repository you later set differently from its organization is marked **Custom** in the table.
* **Review level** : an organization row has no review level of its own.
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -103,7 +103,7 @@
### What developers can change
-Developers come to you to change the review level, the **Review runs** setting, or which repositories get reviews. From GitHub, without the Owner role, they can do these:
+Developers ask an Owner to change the review level, the **Review runs** setting, or which repositories get reviews. From GitHub, without the Owner role, they can do these:
* **Request a review** : comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) on a pull request. This needs write access to the repository, and it works on [drafts and pull requests from forks](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>), which automatic reviews skip.
* **Subscribe one pull request to a review on each push** : comment `@claude review always` on a pull request that isn’t [a draft or from a fork](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>), such as in a repository set to Manual
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -47,7 +47,7 @@
Click Turn on
-In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want PR Steward on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added and nothing is turned on. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
+In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want [PR Steward](</docs/en/pr-steward>) on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added and nothing is turned on. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
6
@@ -82,7 +82,9 @@
* **After every push** : a review runs on pushes to the pull request branch, catching new issues as the pull request evolves and auto-resolving threads when you fix flagged issues
* **Manual (@claude review)** : opening or pushing to a pull request doesn’t start a review. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
-Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option. The choice saves as soon as you select it. The table’s **Code review** column shows it shortened to Once per PR, Every push, or Manual.
+Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting on the [**Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>) page, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option:
+
+Your choice saves as soon as you select it. The **Repositories** table’s **Code review** column shows it shortened to Once per PR, Every push, or Manual.
* **Drafts and pull requests from forks** : whichever option you choose, [automatic reviews skip both](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>)
* **New repositories** : a repository you add from the **Add a repository** dialog starts at **After every push**. If its GitHub organization is covered as a whole, it takes that organization row’s setting instead.
@@ -142,11 +144,11 @@
In [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>), pick the control that matches what you want to stop:
* **One repository, keeping it in the list** : click **Edit** on its row and turn off **Code review**. The table shows the repository as Off.
- * **One repository, removing it** : click **Edit** on its row, then **Remove repository** at the bottom of the dialog. Reviews stop there, and another Claude organization can then set that repository up. While the repository’s GitHub organization is covered as a whole, you can’t remove it; turn off its **Code review** switch instead.
+ * **One repository, removing it** : click **Edit** on its row, then **Remove repository** at the bottom of the dialog. Another Claude organization can then set that repository up. While the repository’s GitHub organization is covered as a whole, you can’t remove it; turn off its **Code review** switch instead.
* **A whole GitHub organization** : click **Edit** on the organization’s row and select **Off**. This also turns off repositories in that organization that you added one at a time.
- * **Everything** : turn off the switch under **Review**. No new reviews start in any repository, and your repository list stays so you can turn it back on later.
+ * **Everything** : turn off the switch under **Review**. Your repository list stays so you can turn the switch back on later.
-With a repository’s **Code review** switch off, or with **Allow code review** off, a [Claude Approvals](</docs/en/approvals-setup#what-approvals-costs>) policy can start billed reviews. To stop those, change the policy or [turn off Approvals](</docs/en/approvals-setup#turn-off-approvals>). Code Review’s spend limit applies to them.
+With a repository’s **Code review** switch off, or with the switch under **Review** off, a [Claude Approvals](</docs/en/approvals-setup#what-approvals-costs>) policy can start billed reviews. To stop those, change the policy or [turn off Approvals](</docs/en/approvals-setup#turn-off-approvals>). Code Review’s spend limit applies to them.
## Related resources
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -1,4 +1,4 @@
-As an Owner of your Claude organization, you turn on Code Review in [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>) on claude.ai. Reviews run on Anthropic infrastructure, so you don’t add workflow files to your repositories. After setup, you choose how thorough reviews are and when they run in each repository. You spend more at a higher review level and when reviews run more often. See [Code Review costs](</docs/en/code-review-costs#pricing>).
+An Owner of your Claude organization turns on Code Review in [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>) on claude.ai. Reviews run on Anthropic infrastructure, so you don’t add workflow files to your repositories. After setup, an Owner chooses how thorough reviews are and when they run in each repository. You spend more at a higher review level and when reviews run more often. See [Code Review costs](</docs/en/code-review-costs#pricing>).
## What you need to turn on Code Review
@@ -14,9 +14,9 @@
1
-Click the Allow code review switch
+Turn on the switch under Review
-Go to the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>) and click the **Allow code review** switch.If Code Review turns on right away with no dialog, your organization already has the Claude GitHub App linked or repositories added. Go to Add more repositories, then come back for the last step.
+Go to [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>) and turn on the switch under **Review**. In the **Turn on Code review** dialog, click **Turn on**.If your organization already has the Claude GitHub App linked or repositories added, no other dialog follows and Code Review is on. Go to Add more repositories, then come back for the last step.
2
@@ -45,9 +45,9 @@
5
-Click Finish
+Click Turn on
-A **Code review is set up** dialog follows. Click **Finish** to turn Code Review on. If you close the dialog any other way, your repositories stay added but **Allow code review** stays off, and you turn it on from the switch.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
+In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want PR Steward on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added and nothing is turned on. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
6
@@ -57,7 +57,7 @@
## Set defaults for your organization
-As an Owner, you decide how thorough reviews are and how often they run. Both are in the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>).
+An Owner decides how thorough reviews are and how often they run. Set both in [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>): the default review level for your Claude organization, and when reviews run for each repository or for a whole GitHub organization.
### Set the default review level
@@ -82,10 +82,11 @@
* **After every push** : a review runs on pushes to the pull request branch, catching new issues as the pull request evolves and auto-resolving threads when you fix flagged issues
* **Manual (@claude review)** : opening or pushing to a pull request doesn’t start a review. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
-Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option. The choice saves as soon as you select it, and the table’s **Review runs** column shows it shortened to Once per PR, Every push, or Manual.
+Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option. The choice saves as soon as you select it. The table’s **Code review** column shows it shortened to Once per PR, Every push, or Manual.
* **Drafts and pull requests from forks** : whichever option you choose, [automatic reviews skip both](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>)
* **New repositories** : a repository you add from the **Add a repository** dialog starts at **After every push**. If its GitHub organization is covered as a whole, it takes that organization row’s setting instead.
+ * **A[Claude Approvals](</docs/en/approvals>) policy file**: in a repository that has one, [reviews can start](</docs/en/approvals-setup#what-approvals-costs>) that this setting wouldn’t start, and [automatic ones can stop](</docs/en/approvals-policy#advisory>)
### Turn tip comments on or off
@@ -114,10 +115,12 @@
### Add more repositories
-To add repositories after setup, click **Add** above the **Repositories** table in the **Code review** section. The **Add a repository** dialog opens. Select repositories and click the button that adds them, which reads **Add 2 repositories** when you’ve selected two.
+To add repositories after setup, click **Add** above the **Repositories** table in [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>). The **Add a repository** dialog opens. Select repositories and click the button that adds them, which reads **Add 2 repositories** when you’ve selected two.
+ * **A Connect GitHub dialog opens first** : follow the step Connect your GitHub account, which ends with **Add a repository** open
* **A repository isn’t listed** : see [A repository isn’t listed in Add a repository](</docs/en/code-review-troubleshooting#a-repository-isn%E2%80%99t-listed-in-add-a-repository>).
* **You want every repository in a GitHub organization** : cover the organization instead of selecting repositories one at a time
+ * **These are your organization’s first repositories** : the **Choose what Claude does on these repositories** dialog follows. Set its checkboxes as in the step Click Turn on, then click its button, which reads **Turn on** or **Done**. Either way, Code Review is on afterward.
### Cover a whole GitHub organization
@@ -136,12 +139,14 @@
### Turn off Code Review or remove a repository
-In the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>), pick the control that matches what you want to stop:
+In [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>), pick the control that matches what you want to stop:
* **One repository, keeping it in the list** : click **Edit** on its row and turn off **Code review**. The table shows the repository as Off.
* **One repository, removing it** : click **Edit** on its row, then **Remove repository** at the bottom of the dialog. Reviews stop there, and another Claude organization can then set that repository up. While the repository’s GitHub organization is covered as a whole, you can’t remove it; turn off its **Code review** switch instead.
* **A whole GitHub organization** : click **Edit** on the organization’s row and select **Off**. This also turns off repositories in that organization that you added one at a time.
- * **Everything** : turn off **Allow code review**. No new reviews start in any repository, and your repository list stays so you can turn it back on later.
+ * **Everything** : turn off the switch under **Review**. No new reviews start in any repository, and your repository list stays so you can turn it back on later.
+
+With a repository’s **Code review** switch off, or with **Allow code review** off, a [Claude Approvals](</docs/en/approvals-setup#what-approvals-costs>) policy can start billed reviews. To stop those, change the policy or [turn off Approvals](</docs/en/approvals-setup#turn-off-approvals>). Code Review’s spend limit applies to them.
## Related resources
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -41,7 +41,7 @@
Choose repositories
-Select the repositories you want reviewed, then click **Continue**. Adding a repository needs write access to it from the GitHub account you connected. You can add more repositories later.
+Select the repositories you want reviewed, then click the button that adds them, which reads **Add 2 repositories** when you’ve selected two. Adding a repository needs write access to it from the GitHub account you connected. You can add more repositories later.
5
@@ -114,7 +114,7 @@
### Add more repositories
-To add repositories after setup, click **Add** above the **Repositories** table in the **Code review** section. The **Add a repository** dialog opens. Select repositories and click **Continue**.
+To add repositories after setup, click **Add** above the **Repositories** table in the **Code review** section. The **Add a repository** dialog opens. Select repositories and click the button that adds them, which reads **Add 2 repositories** when you’ve selected two.
* **A repository isn’t listed** : see [A repository isn’t listed in Add a repository](</docs/en/code-review-troubleshooting#a-repository-isn%E2%80%99t-listed-in-add-a-repository>).
* **You want every repository in a GitHub organization** : cover the organization instead of selecting repositories one at a time
Show diff (148 lines)
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -1,10 +1,6 @@
As an Owner of your Claude organization, you turn on Code Review in [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>) on claude.ai. Reviews run on Anthropic infrastructure, so you don’t add workflow files to your repositories. After setup, you choose how thorough reviews are and when they run in each repository. You spend more at a higher review level and when reviews run more often. See [Code Review costs](</docs/en/code-review-costs#pricing>).
-##
-
-
-
-What you need to turn on Code Review
+## What you need to turn on Code Review
First check that your organization [qualifies for Code Review](</docs/en/code-review#availability>). Then make sure you have this access, or someone who does:
@@ -14,11 +10,7 @@
Owner of the GitHub organization| Installing the Claude GitHub App and [linking it to your Claude organization](</docs/en/admin-setup#connected-github-accounts>). If you aren’t an owner, have one install and link the app before you start
Write access to each repository you add, from the GitHub account you connect to Claude| Adding the repository
-##
-
-
-
-Turn on Code Review
+## Turn on Code Review
1
@@ -63,19 +55,11 @@
Open a test pull request in one of the repositories you added, and don’t mark it as a draft. A check run named **Claude Code Review** appears within a few minutes. If you already set the repository to **Manual (@claude review)** , comment `@claude review` on the pull request to start the first review.If no check run appears, see [No check run appears on the test pull request](</docs/en/code-review-troubleshooting#no-check-run-appears-on-the-test-pull-request>).Once the review arrives, send your developers [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>), which covers the severity levels, the comment commands, and how to respond to findings.
-##
-
-
-
-Set defaults for your organization
+## Set defaults for your organization
As an Owner, you decide how thorough reviews are and how often they run. Both are in the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>).
-###
-
-
-
-Set the default review level
+### Set the default review level
The review level sets how thorough each review is, and a more thorough review costs more. You set one default for the organization and can override it for individual repositories.
@@ -90,11 +74,7 @@
A new level applies to reviews that start after the change. For what else drives the cost of each review, see [Code Review costs and usage](</docs/en/code-review-costs>).
-###
-
-
-
-Set when reviews run
+### Set when reviews run
Each repository has its own **Review runs** setting, which decides when its pull requests get reviewed.
@@ -107,11 +87,7 @@
* **Drafts and pull requests from forks** : whichever option you choose, [automatic reviews skip both](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>)
* **New repositories** : a repository you add from the **Add a repository** dialog starts at **After every push**. If its GitHub organization is covered as a whole, it takes that organization row’s setting instead.
-###
-
-
-
-Turn tip comments on or off
+### Turn tip comments on or off
A tip comment is a short comment Claude posts on a pull request when no review starts, saying why and what to do next. **Show tips on pull requests** is on by default. With it on, Claude posts a tip in each of these cases, explaining:
@@ -122,11 +98,7 @@
Turn the setting off to stop these comments.
-###
-
-
-
-What developers can change
+### What developers can change
Developers come to you to change the review level, the **Review runs** setting, or which repositories get reviews. From GitHub, without the Owner role, they can do these:
@@ -136,30 +108,18 @@
Reviews that developers request are [billed to your organization](</docs/en/code-review-costs#pricing>). To limit what Code Review spends in a month, see [Limit your spend](</docs/en/code-review-costs#limit-your-spend>).
-##
-
-
-
-Manage repositories
+## Manage repositories
You can add repositories one at a time or cover a whole GitHub organization at once, and stop reviews wherever you don’t want them.
-###
-
-
-
-Add more repositories
+### Add more repositories
To add repositories after setup, click **Add** above the **Repositories** table in the **Code review** section. The **Add a repository** dialog opens. Select repositories and click **Continue**.
* **A repository isn’t listed** : see [A repository isn’t listed in Add a repository](</docs/en/code-review-troubleshooting#a-repository-isn%E2%80%99t-listed-in-add-a-repository>).
* **You want every repository in a GitHub organization** : cover the organization instead of selecting repositories one at a time
-###
-
-
-
-Cover a whole GitHub organization
+### Cover a whole GitHub organization
To turn on Code Review for every repository in a GitHub organization, set **Review runs** on the organization’s row in the **Repositories** table. That covers every repository there that the Claude GitHub App can access, including repositories added later. This can raise spend significantly. It requires all of these:
@@ -174,11 +134,7 @@
* **Individual changes afterward** : a repository you later set differently from its organization is marked **Custom** in the table.
* **Review level** : an organization row has no review level of its own.
-###
-
-
-
-Turn off Code Review or remove a repository
+### Turn off Code Review or remove a repository
In the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>), pick the control that matches what you want to stop:
@@ -187,11 +143,7 @@
* **A whole GitHub organization** : click **Edit** on the organization’s row and select **Off**. This also turns off repositories in that organization that you added one at a time.
* **Everything** : turn off **Allow code review**. No new reviews start in any repository, and your repository list stays so you can turn it back on later.
-##
-
-
-
-Related resources
+## Related resources
* [Code Review costs and usage](</docs/en/code-review-costs>): how the review level and when reviews run affect spend, how to set a spend limit, and where to see usage
* [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>): what developers see on a pull request and the comment commands
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -117,7 +117,7 @@
* **The repository is set to Manual** : how to request a review with a comment
* **The pull request comes from a fork** : that a maintainer can request the review
- * **A bot, or someone without write access, comments`@claude review`**: that no review was started, and who can request one
+ * **A bot, or someone without write access who isn’t the pull request’s author, comments`@claude review`**: that no review was started, and who can request one
* **The GitHub organization isn’t linked to your Claude organization** : that reviews are paused, and how to link it
Turn the setting off to stop these comments.
Show diff (202 lines)
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -0,0 +1,199 @@
+As an Owner of your Claude organization, you turn on Code Review in [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>) on claude.ai. Reviews run on Anthropic infrastructure, so you don’t add workflow files to your repositories. After setup, you choose how thorough reviews are and when they run in each repository. You spend more at a higher review level and when reviews run more often. See [Code Review costs](</docs/en/code-review-costs#pricing>).
+
+##
+
+
+
+What you need to turn on Code Review
+
+First check that your organization [qualifies for Code Review](</docs/en/code-review#availability>). Then make sure you have this access, or someone who does:
+
+Access| Needed for
+---|---
+[Owner role](</docs/en/server-managed-settings#access-control>) in your Claude organization| Every step on the admin page
+Owner of the GitHub organization| Installing the Claude GitHub App and [linking it to your Claude organization](</docs/en/admin-setup#connected-github-accounts>). If you aren’t an owner, have one install and link the app before you start
+Write access to each repository you add, from the GitHub account you connect to Claude| Adding the repository
+
+##
+
+
+
+Turn on Code Review
+
+1
+
+Click the Allow code review switch
+
+Go to the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>) and click the **Allow code review** switch.If Code Review turns on right away with no dialog, your organization already has the Claude GitHub App linked or repositories added. Go to Add more repositories, then come back for the last step.
+
+2
+
+Connect your GitHub account
+
+If a **Connect GitHub** dialog opens, click **Connect**. If your organization uses GitHub Enterprise Server, select your instance in the dialog first. GitHub asks you to authorize Claude, then returns you to the admin page with the **Add a repository** dialog open.If **Add a repository** opened straight away, your account is already connected, so go on to the next step.
+
+3
+
+Install the Claude GitHub App
+
+If the repositories you want are listed in the **Add a repository** dialog, or you find them by searching there, go on to the next step. The dialog lists a repository only if the Claude GitHub App can access it, so if they aren’t there, install the app:
+
+ * Click **Install GitHub App**. When no repositories are listed, it’s a button in the dialog. Otherwise, it’s at the bottom of the dialog’s GitHub organization filter menu. GitHub’s install page opens in a new tab.
+ * Pick the GitHub organization that owns the repositories.
+ * Choose which repositories the app can access.
+ * Approve the requested permissions. The set is broader than a review uses and is shared by other Claude features, such as [GitHub Actions](</docs/en/github-actions>). See [what a review can access](</docs/en/code-review#what-a-review-can-access>) and the [full permission list](</docs/en/github-actions#github-app-permissions>).
+ * When the install completes, the tab returns to Claude. If it shows a **Finish connecting GitHub** button, click it to link the installation to your Claude organization.
+ * Go back to the admin page’s tab, where the list in the dialog refreshes.
+
+4
+
+Choose repositories
+
+Select the repositories you want reviewed, then click **Continue**. Adding a repository needs write access to it from the GitHub account you connected. You can add more repositories later.
+
+5
+
+Click Finish
+
+A **Code review is set up** dialog follows. Click **Finish** to turn Code Review on. If you close the dialog any other way, your repositories stay added but **Allow code review** stays off, and you turn it on from the switch.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
+
+6
+
+Verify with a test pull request
+
+Open a test pull request in one of the repositories you added, and don’t mark it as a draft. A check run named **Claude Code Review** appears within a few minutes. If you already set the repository to **Manual (@claude review)** , comment `@claude review` on the pull request to start the first review.If no check run appears, see [No check run appears on the test pull request](</docs/en/code-review-troubleshooting#no-check-run-appears-on-the-test-pull-request>).Once the review arrives, send your developers [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>), which covers the severity levels, the comment commands, and how to respond to findings.
+
+##
+
+
+
+Set defaults for your organization
+
+As an Owner, you decide how thorough reviews are and how often they run. Both are in the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>).
+
+###
+
+
+
+Set the default review level
+
+The review level sets how thorough each review is, and a more thorough review costs more. You set one default for the organization and can override it for individual repositories.
+
+Level| What it trades
+---|---
+Quick| A lighter pass. The fastest level, at the lowest cost
+Standard| Balanced depth, speed, and cost. The default level
+Deep| The most thorough pass. Takes the longest and costs the most
+
+ * **Organization default** : select a level under **Review level** and confirm with **Change level**. Every repository uses it unless you give that repository its own.
+ * **One repository** : click **Edit** on the repository’s row, then select a **Review level** there. The first option, **Default** , follows the organization. The level saves as soon as you select it.
+
+A new level applies to reviews that start after the change. For what else drives the cost of each review, see [Code Review costs and usage](</docs/en/code-review-costs>).
+
+###
+
+
+
+Set when reviews run
+
+Each repository has its own **Review runs** setting, which decides when its pull requests get reviewed.
+
+ * **Once after PR creation** : a review runs when a pull request is opened, reopened, or marked ready for review
+ * **After every push** : a review runs on pushes to the pull request branch, catching new issues as the pull request evolves and auto-resolving threads when you fix flagged issues
+ * **Manual (@claude review)** : opening or pushing to a pull request doesn’t start a review. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
+
+Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option. The choice saves as soon as you select it, and the table’s **Review runs** column shows it shortened to Once per PR, Every push, or Manual.
+
+ * **Drafts and pull requests from forks** : whichever option you choose, [automatic reviews skip both](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>)
+ * **New repositories** : a repository you add from the **Add a repository** dialog starts at **After every push**. If its GitHub organization is covered as a whole, it takes that organization row’s setting instead.
+
+###
+
+
+
+Turn tip comments on or off
+
+A tip comment is a short comment Claude posts on a pull request when no review starts, saying why and what to do next. **Show tips on pull requests** is on by default. With it on, Claude posts a tip in each of these cases, explaining:
+
+ * **The repository is set to Manual** : how to request a review with a comment
+ * **The pull request comes from a fork** : that a maintainer can request the review
+ * **A bot, or someone without write access, comments`@claude review`**: that no review was started, and who can request one
+ * **The GitHub organization isn’t linked to your Claude organization** : that reviews are paused, and how to link it
+
+Turn the setting off to stop these comments.
+
+###
+
+
+
+What developers can change
+
+Developers come to you to change the review level, the **Review runs** setting, or which repositories get reviews. From GitHub, without the Owner role, they can do these:
+
+ * **Request a review** : comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) on a pull request. This needs write access to the repository, and it works on [drafts and pull requests from forks](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>), which automatic reviews skip.
+ * **Subscribe one pull request to a review on each push** : comment `@claude review always` on a pull request that isn’t [a draft or from a fork](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>), such as in a repository set to Manual
+ * **Change what reviews flag** : commit [`REVIEW.md` and `CLAUDE.md` files](</docs/en/code-review-customize>) to the repository, for example to add a check
+
+Reviews that developers request are [billed to your organization](</docs/en/code-review-costs#pricing>). To limit what Code Review spends in a month, see [Limit your spend](</docs/en/code-review-costs#limit-your-spend>).
+
+##
+
+
+
+Manage repositories
+
+You can add repositories one at a time or cover a whole GitHub organization at once, and stop reviews wherever you don’t want them.
+
+###
+
+
+
+Add more repositories
+
+To add repositories after setup, click **Add** above the **Repositories** table in the **Code review** section. The **Add a repository** dialog opens. Select repositories and click **Continue**.
+
+ * **A repository isn’t listed** : see [A repository isn’t listed in Add a repository](</docs/en/code-review-troubleshooting#a-repository-isn%E2%80%99t-listed-in-add-a-repository>).
+ * **You want every repository in a GitHub organization** : cover the organization instead of selecting repositories one at a time
+
+###
+
+
+
+Cover a whole GitHub organization
+
+To turn on Code Review for every repository in a GitHub organization, set **Review runs** on the organization’s row in the **Repositories** table. That covers every repository there that the Claude GitHub App can access, including repositories added later. This can raise spend significantly. It requires all of these:
+
+ * The GitHub account you connected to Claude is an owner of that GitHub organization.
+ * The organization is on github.com. GitHub Enterprise Server instances and personal GitHub accounts aren’t eligible.
+ * A [monthly spend limit](</docs/en/code-review-costs#limit-your-spend>) is set, for your Claude organization or for Code Review.
+
+To cover the organization, click **Edit** on its row, select a **Review runs** option, and confirm. The options are the three from Set when reviews run plus **Off**. After you confirm, these changes take effect:
+
+ * **Coverage** : each repository is covered from its next pull request. If the Claude GitHub App was installed on selected repositories rather than all of them, Claude reviews those repositories; change the app’s repository access on GitHub to cover the rest.
+ * **Existing settings** : every repository in that GitHub organization takes the option you select, including repositories you had set individually. Setting the row again does the same. Repositories you turned off on their own rows stay off.
+ * **Individual changes afterward** : a repository you later set differently from its organization is marked **Custom** in the table.
+ * **Review level** : an organization row has no review level of its own.
+
+###
+
+
+
+Turn off Code Review or remove a repository
+
+In the **Code review** section of [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code#code-review>), pick the control that matches what you want to stop:
+
+ * **One repository, keeping it in the list** : click **Edit** on its row and turn off **Code review**. The table shows the repository as Off.
+ * **One repository, removing it** : click **Edit** on its row, then **Remove repository** at the bottom of the dialog. Reviews stop there, and another Claude organization can then set that repository up. While the repository’s GitHub organization is covered as a whole, you can’t remove it; turn off its **Code review** switch instead.
+ * **A whole GitHub organization** : click **Edit** on the organization’s row and select **Off**. This also turns off repositories in that organization that you added one at a time.
+ * **Everything** : turn off **Allow code review**. No new reviews start in any repository, and your repository list stays so you can turn it back on later.
+
+##
+
+
+
+Related resources
+
+ * [Code Review costs and usage](</docs/en/code-review-costs>): how the review level and when reviews run affect spend, how to set a spend limit, and where to see usage
+ * [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>): what developers see on a pull request and the comment commands
+ * [Customize Code Review](</docs/en/code-review-customize>): tune what Claude flags with `REVIEW.md` and `CLAUDE.md`
+ * [GitHub Enterprise Server](</docs/en/github-enterprise-server>): connect a self-hosted GitHub instance before setup