Skip to content

Commit 105b31c

Browse files
committed
Update CodeRabbit documentation
1 parent f7f472e commit 105b31c

File tree

4 files changed

+90
-94
lines changed

4 files changed

+90
-94
lines changed

docs/get-started/add-repo.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,18 @@ image: "/preview_meta.jpg"
2424

2525
Learn how to add CodeRabbit to your GitHub or GitLab repositories.
2626

27-
To add additional repositories after the signup, go to the repositories page within the CodeRabbit UI.
27+
To add additional repositories after the sign-up, go to the repositories page within the CodeRabbit UI.
2828

2929
Click on the "**Add repositories**" button. Upon clicking, you'll be redirected to GitHub.
3030

3131
![Untitled](./images/add1.png)
3232

33-
34-
3533
Upon successful installation, you will be automatically redirected back to the CodeRabbit UI. Here, you can view the list of repositories that CodeRabbit now has access to.
3634

3735
![Untitled](./images/add4.png)
3836

39-
Note for GitLab the flow is slightly different. All the repositories display by default and you can toggle and enable the ones where the CodeRabbit app should be installed.
40-
37+
Note for GitLab the flow is slightly different. All the repositories display by default and you can toggle and enable the ones where the CodeRabbit app should be installed.
4138

4239
### **Need help?**
4340

44-
If you require assistance, our support team is here to help. Simply click on the help icon within the CodeRabbit user interface. For more detailed information, please refer to the "Support" section. Additionally, consider joining the CodeRabbit Discord community to connect with other users and access a wealth of knowledge about using CodeRabbit effectively.
41+
If you require assistance, our support team is here to help. Simply click on the help icon within the CodeRabbit user interface. For more detailed information, please refer to the "Support" section. Additionally, consider joining the CodeRabbit Discord community to connect with other users and access a wealth of knowledge about using CodeRabbit effectively.

docs/get-started/customize-coderabbit.md

+75-78
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ show-title: false
2323
<meta name="twitter:description" content="Accelerate Code Reviews with AI" />
2424
</head>
2525

26-
### [](https://coderabbit.ai/docs/get-started#3-tailor-coderabbit-to-your-needs)
27-
28-
CodeRabbit offers various customization options to tailor the reviews to your specific requirements. Customizations can be
26+
CodeRabbit offers various customization options to tailor the reviews to your specific requirements. Customizations can be
2927
made using one of the below options :
3028

3129
1. **Customization via CodeRabbit YAML File** _(Recommended)_
@@ -35,102 +33,101 @@ Customization defined in the YAML file overrides the settings in the UI.
3533

3634
#### 1. Customize CodeRabbit using a YAML File[](https://coderabbit.ai/docs/get-started/customize-coderabbit#1-customize-coderabbit-using-a-yaml-file)
3735

38-
You can add a `.coderabbit.yaml` configuration file to your repositories.
36+
You can add a `.coderabbit.yaml` configuration file to your repositories.
3937
Below is a sample YAML file that can be used as a starting point and change as needed:
4038

41-
#### Sample :
39+
#### version 2: `Current`
4240

4341
```yaml
4442
language: "jp"
4543
early_access: false
4644
reviews:
47-
request_changes_workflow: false
48-
high_level_summary: true
49-
poem: true
50-
review_status: true
51-
collapse_walkthrough: false
52-
path_filters:
53-
- "!**/.xml"
54-
path_instructions:
55-
- path: "**/*.js"
56-
instructions: "Review the JavaScript code for conformity with the Google JavaScript style guide, highlighting any deviations."
57-
- path: "tests/**/*"
58-
instructions: |
59-
"Assess the unit test code employing the Mocha testing framework. Confirm that:
60-
- The tests adhere to Mocha's established best practices.
61-
- Test descriptions are sufficiently detailed to clarify the purpose of each test."
62-
auto_review:
63-
enabled: true
64-
ignore_title_keywords:
65-
- "WIP"
66-
- "DO NOT MERGE"
67-
drafts: false
68-
base_branches:
69-
- "develop"
70-
- "feat/*"
45+
request_changes_workflow: false
46+
high_level_summary: true
47+
poem: true
48+
review_status: true
49+
collapse_walkthrough: false
50+
path_filters:
51+
- "!**/.xml"
52+
path_instructions:
53+
- path: "**/*.js"
54+
instructions: "Review the JavaScript code for conformity with the Google JavaScript style guide, highlighting any deviations."
55+
- path: "tests/**/*"
56+
instructions: |
57+
"Assess the unit test code employing the Mocha testing framework. Confirm that:
58+
- The tests adhere to Mocha's established best practices.
59+
- Test descriptions are sufficiently detailed to clarify the purpose of each test."
60+
auto_review:
61+
enabled: true
62+
ignore_title_keywords:
63+
- "WIP"
64+
- "DO NOT MERGE"
65+
drafts: false
66+
base_branches:
67+
- "develop"
68+
- "feat/*"
7169
chat:
72-
auto_reply: true
70+
auto_reply: true
7371
```
72+
7473
**Note**: `.coderabbit.yaml` file should be placed at the root directory of the repository.
7574

7675
Yaml settings:
7776

7877
1. **language**: Set the language for reviews using the ISO language code. For example, `"fr"` stands for French (default:`en`).
7978

80-
2. **early_access**: Enroll in the early access program to take advantage of forthcoming features before their general releas (default:`false`).
79+
2. **early_access**: Enroll in the early access program to take advantage of forthcoming features before their general release (default:`false`).
8180

8281
3. **reviews**: Configurations for the code reviews.
83-
- **request_changes_workflow**: Enable Request Changes review workflow for CodeRabbit reviews. (default: `false`).
84-
- **high_level_summary**: CodeRabbit generates a high level summary of the changes (default:`true`).
85-
- **poem**: Indicates whether a creative poem should be included in the review (default:`true`).
86-
- **review_status**: Indicates the status of the review (default:`true`).
87-
- **collapse_walkthrough**: Collapses the walkthrough comment (default:`false`).
88-
- **path_filters**: Specifies file patterns to exclude or include for a review, such as `!dist/**` and `src/**.tsx`, using glob notation.
89-
- **path_instructions**: Provides specific additional guidelines for code review based on file paths. In the given example, JavaScript files are singled out for checks against the Google JavaScript style guide. File path accepts glob pattern
90-
- **auto_review**: Manages settings for automated code reviews, such as:
91-
- **enabled**: Automated code review (default: `true`).
92-
- **ignore_title_keywords**: Review will be ignored if a pull request title contains one of the list of keywords (e.g., `"WIP"`, `"DO NOT MERGE"`).
93-
- **labels**: Review will be triggered if a pull request contains one of the list of labels.
94-
- **drafts**: Determines whether draft pull requests are reviewed (default: `true`).
95-
- **base_branches**: A list of base branches where the reviews will occur apart from the default branch. Accepts regex pattern.
82+
- **request_changes_workflow**: Enable Request Changes review workflow for CodeRabbit reviews. (default: `false`).
83+
- **high_level_summary**: CodeRabbit generates a high level summary of the changes (default:`true`).
84+
- **poem**: Indicates whether a creative poem should be included in the review (default:`true`).
85+
- **review_status**: Indicates the status of the review (default:`true`).
86+
- **collapse_walkthrough**: Collapses the walkthrough comment (default:`false`).
87+
- **path_filters**: Specifies file patterns to exclude or include for a review, such as `!dist/**` and `src/**.tsx`, using glob notation.
88+
- **path_instructions**: Provides specific additional guidelines for code review based on file paths. In the given example, JavaScript files are singled out for checks against the Google JavaScript style guide. File path accepts glob pattern
89+
- **auto_review**: Manages settings for automated code reviews, such as:
90+
- **enabled**: Automated code review (default: `true`).
91+
- **ignore_title_keywords**: Review will be ignored if a pull request title contains one of the list of keywords (e.g., `"WIP"`, `"DO NOT MERGE"`).
92+
- **labels**: Review will be triggered if a pull request contains one of the list of labels.
93+
- **drafts**: Determines whether draft pull requests are reviewed (default: `true`).
94+
- **base_branches**: A list of base branches where the reviews will occur apart from the default branch. Accepts regex pattern.
9695
4. **chat**: Defines the behavior of CodeRabbit's bot in conversations.
97-
- **auto_reply**: The bot automatically replies without the need of the user tagging it ( default: `true` ).
96+
- **auto_reply**: The bot automatically replies without the need of the user tagging it ( default: `true` ).
9897

9998
Refer: [CodeRabbit Configuration Schema](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json).
10099

101-
102-
103100
#### version 1: `deprecated` (Please use version [version 2](/docs/get-started/customize-coderabbit#example-structure-for-version-2))
104101

105102
```yaml
106103
settings:
107-
# Enables automatic reviewing of draft pull requests.
108-
enable_draft_pr_reviews: true
109-
# Specifies additional base/target branches to be reviewed. Accept regex pattern.
110-
additional_branches_to_be_reviewed:
111-
- "master"
112-
- "yaml/test"
113-
# Disables generation of release notes.
114-
disable_high_level_summary: false
115-
# Specific review instructions for certain file paths. File paths accept glob pattern
116-
path_based_instructions:
117-
- path: "**/*.js"
118-
instructions: "Review the javascript code against the google javascript style guide and point out any mismatches"
119-
- path: "tests/**/*"
120-
instructions:
121-
"Review the following unit test code written using the Mocha test library. Ensure that:
122-
- The code adheres to best practices associated with Mocha.
123-
- Descriptive test names are used to clearly convey the intent of each test."
124-
# Comma separated list of keywords in the title that should be ignored.
125-
ignored_pr_titles: "WIP"
126-
# ISO Code for the review language.
127-
review_language: "en"
128-
# Disables review and other status comments.
129-
disable_review_status: false
130-
# Add walkthrough comment in a collapsible section.
131-
collapse_walkthrough_comment: true
132-
# Disable automatic code reviews for this repository.
133-
disable_review: false
104+
# Enables automatic reviewing of draft pull requests.
105+
enable_draft_pr_reviews: true
106+
# Specifies additional base/target branches to be reviewed. Accept regex pattern.
107+
additional_branches_to_be_reviewed:
108+
- "master"
109+
- "yaml/test"
110+
# Disables generation of release notes.
111+
disable_high_level_summary: false
112+
# Specific review instructions for certain file paths. File paths accept glob pattern
113+
path_based_instructions:
114+
- path: "**/*.js"
115+
instructions: "Review the javascript code against the google javascript style guide and point out any mismatches"
116+
- path: "tests/**/*"
117+
instructions:
118+
"Review the following unit test code written using the Mocha test library. Ensure that:
119+
- The code adheres to best practices associated with Mocha.
120+
- Descriptive test names are used to clearly convey the intent of each test."
121+
# Comma separated list of keywords in the title that should be ignored.
122+
ignored_pr_titles: "WIP"
123+
# ISO Code for the review language.
124+
review_language: "en"
125+
# Disables review and other status comments.
126+
disable_review_status: false
127+
# Add walkthrough comment in a collapsible section.
128+
collapse_walkthrough_comment: true
129+
# Disable automatic code reviews for this repository.
130+
disable_review: false
134131
```
135132

136133
<!-- ![code](./images/ymlrabbit.png) -->
@@ -153,17 +150,17 @@ This configuration file consists of the following settings:
153150

154151
Refer: [CodeRabbit configuration schema](https://coderabbit.ai/integrations/coderabbit-overrides.json).
155152

156-
### 2. Customize CodeRabbit through the UI [](https://coderabbit.ai/docs/get-started#2-customize-coderabbit-through-the-ui-dashboard)
153+
#### 2. Customize CodeRabbit through the UI [](https://coderabbit.ai/docs/get-started#2-customize-coderabbit-through-the-ui-dashboard)
157154

158-
Reviewes can also be customized through the UI under repository settings:
155+
Reviews can also be customized through the UI under repository settings:
159156

160157
### Review Customization[](https://coderabbit.ai/docs/get-started#review-customization)
161158

162159
[](./images/tailor2.png)
163160

164161
**Path based instructions :** Provide additional review guidelines based on the file paths using glob patterns.
165162

166-
For further guidance please refer this section [Prompt Customization](https://coderabbit.ai/docs/get-started/prompt-customization)
163+
For further guidance please refer this section [Prompt Customization](/docs/get-started/prompt-customization)
167164

168165
**Language Selection:** Select the natural language in which you want the review feedback. CodeRabbit supports most of the widely used languages. The default language is English.
169166

@@ -181,4 +178,4 @@ For further guidance please refer this section [Prompt Customization](https://c
181178

182179
**File Pattern:** Include or exclude specific file patterns from the review.
183180

184-
Please note that code reviews commence with new pull requests or incremental commits to existing pull requests once the CodeRabbit app is installed. Should you have any questions or require assistance, our support team is here to help.
181+
Please note that code reviews commence with new pull requests or incremental commits to existing pull requests once the CodeRabbit app is installed. Should you have any questions or require assistance, our support team is here to help.

docs/get-started/signup.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sidebar_label: Sign Up
44
description: Accelerate Code Reviews with AI
55
image: "/preview_meta.jpg"
66
---
7+
78
<head>
89
<meta charSet="utf-8" />
910
<meta name="title" content="CodeRabbit: AI-powered Code Reviews" />
@@ -49,4 +50,4 @@ Note that the automatic code review behavior can be changed to "On-Demand". To m
4950

5051
### **Need help?**
5152

52-
If you require assistance, our support team is here to help. Simply click on the help icon within the CodeRabbit user interface. For more detailed information, please refer to the "Support" section. Additionally, consider joining the CodeRabbit Discord community to connect with other users and access a wealth of knowledge about using CodeRabbit effectively.
53+
If you require assistance, our support team is here to help. Simply click on the help icon within the CodeRabbit user interface. For more detailed information, please refer to the "Support" section. Additionally, consider joining the CodeRabbit Discord community to connect with other users and access a wealth of knowledge about using CodeRabbit effectively.

docs/introduction/support.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sidebar_label: Support
44
description: Accelerate Code Reviews with AI
55
image: "/preview_meta.jpg"
66
---
7+
78
<head>
89
<meta charSet="utf-8" />
910
<meta name="title" content="CodeRabbit: AI-powered Code Reviews" />
@@ -24,17 +25,18 @@ image: "/preview_meta.jpg"
2425
Welcome to CodeRabbit's Support! Please refer this section if you encounter any issues or have questions. Our support team will respond back as soon as possible.
2526

2627
### **Common Issues and Answers**
28+
2729
These are the most common questions our support team receives, and you might find an answer here
2830

2931
### 1. Can I switch between different organizations on CodeRabbit?
3032

3133
Yes, you can switch between different organizations on CodeRabbit. To do so, click on the organization name in the top right corner of the CodeRabbit UI.
3234

33-
![Switch Organizations](./images/help3.png)
35+
![Switch Organizations](./images/help3.png)
3436

3537
### 2. Can CodeRabbit subscription be used across multiple organizations?
3638

37-
Subscription seat are tied to the specific GitHub/GitLab organization under which they are purchased and cannot be used under another organization.
39+
Subscription seat are tied to the specific GitHub/GitLab organization under which they are purchased and cannot be used under another organization.
3840

3941
### 3. Can CodeRabbit review my existing PRs after integrating it?
4042

@@ -47,30 +49,29 @@ You need to be GitHub/GitLab admin to add the repositories.
4749

4850
### 5. Do I need own OpenAI key with CodeRabbit Pro?
4951

50-
OpenAI cost is part of the subscription.There is no additional cost for OpenAI.
52+
OpenAI cost is part of the subscription.There is no additional cost for OpenAI.
5153

52-
### 6. What is the differencen between CodeRabbit OSS ai-pr-reviewer and CodeRabbit Pro ?
54+
### 6. What is the difference between CodeRabbit OSS ai-pr-reviewer and CodeRabbit Pro ?
5355

5456
ai-pr-reviewer is our Open Source Software (OSS) for pull request reviews. With CodeRabbit OSS, you need your own OpenAI key, and you will incur OpenAI costs.
5557
On the other hand, with a CodeRabbit Pro subscription, the OpenAI cost is included. Additionally, CodeRabbit Pro offers advanced prompts and superior noise reduction features, which are not present in CodeRabbit OSS.
5658

57-
### 7. Can I use both CodeRabbit OSS and CodeRabbit Pro together ?
59+
### 7. Can I use both CodeRabbit OSS and CodeRabbit Pro together ?
5860

5961
You can, but this will result in duplicate reviews. We suggest you use only one of the two.
6062

6163
### Explore More
6264

6365
To see more common issues faced by CodeRabbit users, visit our FAQ section for detailed answers and solutions to frequently encountered problems.
6466

65-
6667
### **Opening a Support Ticket**
6768

6869
To get assistance from our support team, open a ticket using the help icon on the CodeRabbit UI:
6970

70-
Complete the support ticket by providing your name, email, a description of your issue, and attaching any necessary files. If you are reporting a bug , please provide the GitHub or GitLab organization name.
71+
Complete the support ticket by providing your name, email, a description of your issue, and attaching any necessary files. If you are reporting a bug , please provide the GitHub or GitLab organization name.
7172

72-
![Open a Ticket](./images/help2.png)
73+
![Open a Ticket](./images/help2.png)
7374

7475
### **Community Collaboration**
7576

76-
Consider joining the CodeRabbit community on Discord.
77+
Consider joining the CodeRabbit community on Discord.

0 commit comments

Comments
 (0)