Skip to content

Commit a245c09

Browse files
committed
Tweaks
1 parent 8f3fa83 commit a245c09

File tree

5 files changed

+46
-43
lines changed

5 files changed

+46
-43
lines changed

docs/guides/configuration-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ For more information, see [Set your organization preferences](/guides/organizati
3939
If you want to apply separate CodeRabbit configuration to your organization's different repositories, then you can
4040
manage repository-specific CodeRabbit settings in two ways:
4141

42-
- Use the CodeRabbit web interface.
4342
- Add a `.coderabbit.yaml` file to the top level of your repository.
43+
- Use the CodeRabbit web interface.
4444

4545
For more information, see [Set your repository preferences](/guides/repository-settings).
4646

docs/guides/initial-configuration.md

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,9 @@ CodeRabbit is aware of nitpickier output from the linters and other tools that i
3232

3333
For more information, see [Profile](/reference/configuration#profile) in the configuration reference.
3434

35-
### Configure pull request approval {#request-changes}
36-
37-
By default, CodeRabbit doesn't mark pull requests as approved after any code review, even if CodeRabbit doesn't have any further significant changes to suggest. This leaves the job of formal pull request approval entirely up to human reviewers.
38-
39-
If you want to allow CodeRabbit to mark pull requests as approved, then you can enable the _request changes workflow_ setting. If you do, then CodeRabbit can approve pull requests after it reviewed a pull request and had all of its comments resolved.
40-
41-
This can be useful if you have a workflow that requires several reviewers to approve a pull request before anyone can merge it. For example, if you have configured your repository on your Git platform to require two approvals for any pull request, then activating this CodeRabbit setting lets you merge a pull request after approval from CodeRabbit plus one human reviewer. This can help reduce your team's code-review load.
42-
43-
:::note
44-
We recommend a policy of always requiring the approval of at least one human reviewer, even if you allow CodeRabbit to approve pull requests. As with an generative AI technology, CodeRabbit works best as a helpful partner to your team, and not as a replacement for human expertise or judgment.
45-
:::
46-
47-
For more information, see [Request Changes Workflow](/reference/configuration#request-changes-workflow) in the configuration reference.
48-
49-
### Configure chat-based issue creation {#chat-issues}
50-
51-
You can [ask CodeRabbit to create issues for you](https://docs.coderabbit.ai/guides/issue-creation) in the comments of a pull request that it's reviewing.
52-
53-
If you have integrated CodeRabbit with Jira or Linear, then you can tune this behavior a little more, restricting this feature to private repositories—the default setting—or disabling it entirely.
54-
55-
For more information, see [Integrations](/reference/configuration#integrations) in the configuration reference.
56-
5735
### Configure learnings {#learnings}
5836

59-
You can teach CodeRabbit your team's review preferences by [stating them in plain language during code reviews](/integrations/knowledge-base#learnings). CodeRabbit remembers these these preferences, and applies them to subsequent code reviews in the same repository.
37+
By default, CodeRabbit learns your team's review preferences by letting you [teach it your preferences in plain language during code reviews](/integrations/knowledge-base#learnings). CodeRabbit remembers these preferences, and applies them to subsequent code reviews in the same repository.
6038

6139
If you don't want this feature, you can disable it. For more information, see [Learnings](/reference/configuration#learnings) in the configuration reference.
6240

@@ -139,13 +117,8 @@ For example, to give CodeRabbit review instructions specific to JavaScript and T
139117

140118
```yaml
141119
path_instructions:
142-
- path: `src/**/*.{ts,tsx,js}`
143-
instructions:
144-
- Review the React.js, TypeScript, JavaScript code for best practices
145-
- Check for common security vulnerabilities such as:
146-
- SQL Injection
147-
- Insecure dependencies
148-
- Sensitive data exposure
120+
- path: `src/**/*.{ts,tsx,js}`
121+
instructions: "Review the React.js, TypeScript, JavaScript code for best practices. Check for common security vulnerabilities, such as SQL injection, insecure dependencies, and sensitive data exposure."
149122
```
150123
151124
For more information, see [Path instructions](/reference/configuration#path-instructions) in the configuration reference.
@@ -201,6 +174,30 @@ reviews:
201174

202175
For more information, see [Tools](/reference/configuration#tools) in the configuration reference.
203176

177+
## Other code review settings {#other}
178+
179+
### Configure pull request approval {#request-changes}
180+
181+
By default, CodeRabbit doesn't mark pull requests as approved after any code review, even if CodeRabbit doesn't have any further significant changes to suggest. This leaves the job of formal pull request approval entirely up to human reviewers.
182+
183+
If you want to allow CodeRabbit to mark pull requests as approved, then you can enable the _request changes workflow_ setting. If you do, then CodeRabbit can approve pull requests after it reviewed a pull request and had all of its comments resolved.
184+
185+
This can be useful if you have a workflow that requires several reviewers to approve a pull request before anyone can merge it. For example, if you have configured your repository on your Git platform to require two approvals for any pull request, then activating this CodeRabbit setting lets you merge a pull request after approval from CodeRabbit plus one human reviewer. This can help reduce your team's code-review load.
186+
187+
:::note
188+
We recommend a policy of always requiring the approval of at least one human reviewer, even if you allow CodeRabbit to approve pull requests. As with an generative AI technology, CodeRabbit works best as a helpful partner to your team, and not as a replacement for human expertise or judgment.
189+
:::
190+
191+
For more information, see [Request Changes Workflow](/reference/configuration#request-changes-workflow) in the configuration reference.
192+
193+
### Configure chat-based issue creation {#chat-issues}
194+
195+
You can [ask CodeRabbit to create issues for you](https://docs.coderabbit.ai/guides/issue-creation) in the comments of a pull request that it's reviewing.
196+
197+
If you have integrated CodeRabbit with Jira or Linear, then you can tune this behavior a little more, restricting this feature to private repositories—the default setting—or disabling it entirely.
198+
199+
For more information, see [Integrations](/reference/configuration#integrations) in the configuration reference.
200+
204201
## What's next {#whats-next}
205202

206203
- [Setup and configuration best practices](/guides/setup-best-practices)

docs/guides/organization-settings.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ For a general overview of configuring CodeRabbit, see [Configure CodeRabbit](/gu
1111

1212
## About organization settings {#about}
1313

14-
You can use the CodeRabbit web interface to set the default CodeRabbit configuration
15-
for all Git repositories associated with your organization. There are two reasons
16-
to review and set your organizational settings:
14+
You can use the CodeRabbit web interface to set a CodeRabbit configuration
15+
for all Git repositories associated with your organization.
1716

18-
- When you give CodeRabbit access to a new repository, CodeRabbit applies all of your
19-
organizational settings to that repository as defaults.
20-
- Some settings, such as [Data retention](/reference/configuration#data-retention), apply only at the organizational level, with
21-
no per-repository equivalent.
17+
You
18+
19+
:::note
20+
Some settings, such as [Data retention](/reference/configuration#data-retention), apply only at the organizational level, with no per-repository equivalent.
21+
:::
2222

2323
## Browse and modify your organization settings {#modify}
2424

@@ -28,6 +28,12 @@ To view or modify your organizational settings, follow these steps:
2828
1. In the sidebar, click **Organization Settings** > **Configuration**.
2929
1. Browse and modify the settings as needed. If you do make changes, click **Apply Changes** when you are finished.
3030

31+
## Apply organization settings to your repositories {#repositories}
32+
33+
To apply your organizational settings to a repository, follow these steps:
34+
35+
1.
36+
3137
## What's next {#whats-next}
3238

3339
- [Initial configuration guide](/guides/initial-configuration)

docs/guides/repository-settings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Git repository. For a general overview of configuring CodeRabbit, see [Configure
1010

1111
CodeRabbit provides two ways to manage its code-review behavior with each of your organization's repositories:
1212

13-
1. View or modify your per-repository settings using the CodeRabbit web interface.
14-
1. Add a `.coderabbit.yaml` file to your repository.
13+
- Add a `.coderabbit.yaml` file to your repository.
14+
- View or modify your per-repository settings using the CodeRabbit web interface.
1515

1616
Any settings that you define in the `.coderabbit.yaml` file take precedence over
1717
settings defined by the web interface. If your repository doesn't have a
@@ -22,7 +22,7 @@ While the web interface provides and easier way to explore the available configu
2222

2323
## Browse and modify your settings using the web interface {#modify}
2424

25-
To view of modify your repsository settings using the CodeRabbit web interface, follow these steps:
25+
To view or modify your repository settings using the CodeRabbit web interface, follow these steps:
2626

2727
1. Visit [the CodeRabbit web interface](https://app.coderabbit.ai/settings/repositories).
2828
1. In the sidebar, click **Repositories**.

docs/reference/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ For more information about payment tiers and features, see [Pricing](https://www
170170
</Tabs>
171171

172172
Defines the written language that CodeRabbit presents its review comments in. Defaults
173-
to American English.
173+
to U.S. English.
174174

175175
### Tone Instructions
176176

@@ -606,7 +606,7 @@ Activate this setting to disallow CodeRabbit from caching your repository's code
606606
When caching is allowed, then CodeRabbit stores a cache of code and metadata from
607607
your repostory for up to seven days after its most recent code review. This cache
608608
lets CodeRabbit save time and effort in between subsquent reviews of the same
609-
repository.
609+
repository. For more information, see [Caching](/reference/caching/).
610610

611611
We recommend leaving this setting off, which allows caching, and can speed up
612612
code reviews. For more information, see

0 commit comments

Comments
 (0)