Skip to content

Commit b0e0536

Browse files
committed
Update introduction and CodeRabbit documentation
1 parent 00de52e commit b0e0536

File tree

4 files changed

+34
-26
lines changed

4 files changed

+34
-26
lines changed

docs/faq/faq.md

+21-19
Original file line numberDiff line numberDiff line change
@@ -4,109 +4,111 @@ sidebar_label: FAQs
44
description: Frequently asked questions about CodeRabbit.
55
---
66

7-
#### How accurate is CodeRabbit's review?
7+
## General
8+
9+
### How accurate is CodeRabbit's review?
810

911
Early adoption results for CodeRabbit have been highly promising, demonstrating
1012
significant accuracy in code reviews. However, it's crucial to understand that
1113
AI is an evolving field, and absolute 100% accuracy can't be guaranteed. Our
1214
technology is continuously improving, aiming for the highest possible accuracy
1315
in reviews.
1416

15-
#### Which programming languages does CodeRabbit support?
17+
### Which programming languages does CodeRabbit support?
1618

1719
CodeRabbit is designed to work with all programming languages. However, the
1820
proficiency of our AI models might vary between languages based on their
1921
popularity and the public availability of training data.
2022

21-
#### Does CodeRabbit store my code?
23+
### Does CodeRabbit store my code?
2224

2325
We do not store your code. The code collected at the time of the review is
2426
disposed of as soon as the review is complete. During the review, there is
2527
complete data isolation of the code being reviewed, and no one from CodeRabbit
2628
or outside has access to the code.
2729

28-
#### Does CodeRabbit use my proprietary code for training language models?
30+
### Does CodeRabbit use my proprietary code for training language models?
2931

3032
We train our system only using publicly available datasets. CodeRabbit never
3133
uses proprietary code from private repositories for training purposes.
3234

33-
#### Can I switch between different organizations on CodeRabbit?
35+
### Can I switch between different organizations on CodeRabbit?
3436

3537
Yes, you can switch between different organizations on CodeRabbit. To do so,
3638
click on the organization name in the top-left corner of the CodeRabbit UI.
3739

3840
![Switch Organizations](./images/cr_support_orgs_light.png#gh-light-mode-only)
3941
![Switch Organizations](./images/cr_support_orgs_dark.png#gh-dark-mode-only)
4042

41-
#### Can a CodeRabbit subscription be used across multiple organizations?
43+
### Can a CodeRabbit subscription be used across multiple organizations?
4244

4345
Subscription seats are tied to the specific GitHub/GitLab organization under
4446
which they are purchased and cannot be used under another organization.
4547

46-
#### Can CodeRabbit review my existing PRs after integrating it?
48+
### Can CodeRabbit review my existing PRs after integrating it?
4749

4850
CodeRabbit will by default only review new PRs or existing PRs which have a new
4951
commit after the app is installed. You can, however, use the
5052
`@coderabbitai review` command on the PR to trigger a review for existing PRs.
5153

52-
#### Who can install CodeRabbit on the repositories?
54+
### Who can install CodeRabbit on the repositories?
5355

5456
You need to be a GitHub/GitLab admin to add the repositories.
5557

56-
#### Do I need my own OpenAI key with CodeRabbit Pro?
58+
### Do I need my own OpenAI key with CodeRabbit Pro?
5759

5860
OpenAI cost is included as part of the subscription. You don't need to have your
5961
own OpenAI key.
6062

61-
#### What Large Language Models does CodeRabbit use?
63+
### What Large Language Models does CodeRabbit use?
6264

6365
CodeRabbit currently utilizes OpenAI's `gpt-4-turbo` and `gpt-3.5-turbo`. We're
6466
researching and testing upcoming LLMs to ensure we're offering the most precise
6567
reviews possible.
6668

67-
#### Can I customize CodeRabbit?
69+
### Can I customize CodeRabbit?
6870

6971
Reviews are customizable. For information, check out our
7072
[Customization](../guides/review-instructions.md) guide.
7173

72-
#### Can I choose a language other than English for the reviews?
74+
### Can I choose a language other than English for the reviews?
7375

7476
CodeRabbit supports most widely used languages. You can configure this in the
7577
repository settings.
7678

77-
#### What access does CodeRabbit need to my repositories?
79+
### What access does CodeRabbit need to my repositories?
7880

7981
CodeRabbit requests minimal access to perform code reviews and post comments on
8082
Pull Requests. On GitHub, it requires read access to metadata, code,
8183
discussions, and issues, as well as read/write access to pull requests. On
8284
GitLab, it requires read access to the repository, and the CodeRabbit Bot user
8385
requires a developer role.
8486

85-
#### How can I add or remove users for my subscription?
87+
### How can I add or remove users for my subscription?
8688

8789
To manage users, log in to CodeRabbit and navigate to subscriptions. You can add
8890
or remove users as needed.
8991

90-
#### How can I interact with the CodeRabbit bot?
92+
### How can I interact with the CodeRabbit bot?
9193

9294
To interact with CodeRabbit's bot, reply to the CodeRabbit Comment. If there are
9395
team members collaborating on pull requests, the bot stays silent by default but
9496
can be engaged by tagging **@coderabbitai**. This feature allows you to provide
9597
context, generate test cases, or ask for specific code suggestions, all within
9698
the context of your code lines or entire files.
9799

98-
#### Can individual developers use CodeRabbit?
100+
### Can individual developers use CodeRabbit?
99101

100102
Absolutely! Whether you're an individual developer or part of an organization,
101103
CodeRabbit can be your coding assistant, providing you with invaluable
102104
suggestions.
103105

104-
#### Which branches are the pull requests reviewed on?
106+
### Which branches are the pull requests reviewed on?
105107

106108
CodeRabbit reviews pull requests on the default branch by default. You can
107109
change this in the repository settings.
108110

109-
#### CodeRabbit Usage Limits
111+
### CodeRabbit Usage Limits
110112

111113
There are hourly rate limits for each developer per repository:
112114

@@ -117,7 +119,7 @@ There are hourly rate limits for each developer per repository:
117119
In-trial and open-source plans have lower rate limits than the paid plan. In all
118120
cases, we re-allow further reviews/conversations after a brief timeout.
119121

120-
#### I can't add CodeRabbit to my GitLab Repositories. What should I do?
122+
### I can't add CodeRabbit to my GitLab Repositories. What should I do?
121123

122124
If there are any access restrictions by domain, then you will need to add
123125
`coderabbit.ai` as an allowed domain.

docs/integrations/saas-gitlab.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ sidebar_label: SaaS GitLab
77
This guide will assist you in effectively integrating CodeRabbit with SaaS GitLab.
88

99
## How it works
10+
1011
For the CodeRabbit app to post reviews on merge requests, it needs to interact with the GitLab API, which requires a Personal Access Token. This token can be generated either by using our default CodeRabbit user or by creating a Personal Access Token from one of your existing users.
1112

1213
The CodeRabbit default user is already set up in GitLab SaaS and will be added to your project when you install the CodeRabbit app. During installation, the necessary webhook for the project will also be created.
@@ -21,6 +22,7 @@ Afterward, you will need to reinstall the CodeRabbit app for each project.
2122
:::
2223

2324
## GitLab Access Tokens
25+
2426
To interact with the GitLab API, a **Personal Access Token** is required. This token can either be generated by using our default CodeRabbit user or by creating a **Personal Access Token** from one of your existing users.
2527

2628
Upon first login to the application (immediately after the onboarding screen), you will need to choose based on your organization's requirements.
@@ -30,11 +32,13 @@ Upon first login to the application (immediately after the onboarding screen), y
3032
**We recommend using the default CodeRabbit user** for most organizations as it is pre-configured. However, we understand that some organizations may prefer more control over the user or have restrictions regarding user inclusion within their organization.
3133

3234
### Personal Access Tokens
35+
3336
If your organization opts to use another user within the organization, you can do so by [generating a personal access token](#generating-a-personal-access-token).
3437

3538
![gitlab organization user modal choice](./images/gitlab_organization_user.png)
3639

3740
#### Recommendations
41+
3842
* **Create a dedicated user for CodeRabbit** - This ensures the user is exclusively for CodeRabbit, allowing better access control.
3943
* **Use "CodeRabbit" as the username** - This makes the user easily recognizable for future reference.
4044
* **Use a dedicated email address** - This helps in easy identification and management.
@@ -45,7 +49,7 @@ If your organization opts to use another user within the organization, you can d
4549
* Personal access tokens have expiration dates. Ensure the expiration date covers the duration of your intended use of the CodeRabbit app.
4650
* Code reviews will be attributed to the owner of the personal access token.
4751
* If the personal access token expires, you can add a new one via the CodeRabbit UI:
48-
* Navigate to the "GitLab User" page in the sidebar.
52+
* Navigate to the "GitLab User" page in the sidebar.
4953
* Click the "Update" button on the displayed card to see the same modal as the initial login.
5054

5155
### Generating a Personal Access Token

docs/integrations/self-hosted-gitlab.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ If the self-managed GitLab instance is not found, we initiate the onboarding pro
3131
### **Step 3: Onboarding Manual or Automated**
3232

3333
#### 1. Automated onboarding
34+
3435
![Untitled](./images/automated-onboarding.png)
3536

3637
#### **Why do we need the Admin Access Token?**
3738

3839
Admin access token is required to set up a new CodeRabbit bot user within your
3940
self-managed instance. The token is needed only once during the initial setup
4041
process. Once the token is generated, you can set its minimum expiration period.
41-
This is the standard approach used by other products in this category.
42+
This is the standard approach used by other products in this category.
4243
This is not automatically installing the CodeRabbit
4344
app across all projects. You will add CodeRabbit manually on the projects you
4445
wish, as the next step.
@@ -49,6 +50,7 @@ For the manual onboarding process we need to create the [CodeRabbit user](#creat
4950
![Untitled](./images/manual-onboarding.png)
5051

5152
#### **Creating CodeRabbit user**
53+
5254
This feature will work with any user from your organization, but we strongly suggest creating a
5355
dedicated user called **CodeRabbitAI**. This ensures clarify about which user is used for our
5456
application and allows for better fine-grained access control.
@@ -58,11 +60,13 @@ After the user is created, you can retrieve the **User ID** from that user's pro
5860
The access token is used to post reviews on merge requests.
5961

6062
#### **Creating OAuth2 application**
63+
6164
For self-managed GitLab, we recommend creating an instance-wide application unless you want the reviews to be limited to a single group or user.
6265

6366
Please follow the steps outlined in the [GitLab documentation](https://docs.gitlab.com/ee/integration/oauth_provider.html#create-an-instance-wide-application) for creating the application.
6467

6568
Requirements:
69+
6670
1. Scopes: `api read_user email`
6771
2. Callback URL: `https://app.coderabbit.ai/login`
6872

docs/introduction.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ committed.
2525

2626
<iframe width="560" height="315" src="https://www.youtube.com/embed/3SyUOSebG7E?si=i0oT9RAnH0PW81lY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
2727

28-
### How does CodeRabbit work?
29-
3028
**CodeRabbit** integrates into code repositories using GitHub or GitLab webhooks
3129
and monitors events related to Pull Request (PR) and Merge Request (MR) changes.
3230
A comprehensive review is performed when a PR or MR is created, and for
@@ -35,7 +33,7 @@ directly back to the PR or MR.
3533

3634
![CodeRabbit Flow](about/images/CodeRabbitFlow.png)
3735

38-
### Data, Privacy, and Security
36+
## Data, Privacy, and Security
3937

4038
**CodeRabbit** does not use data collected during code reviews to train or
4139
influence the models. Queries to the Large Language Models (LLMs) are ephemeral
@@ -56,7 +54,7 @@ complies with SOC2 Type II and GDPR standards.
5654
Opting Out: You can choose to opt out of data storage at any time. Opting out
5755
won't affect your access but will limit the personalization of the reviews.
5856

59-
### Do you need CodeRabbit with the AI code generators like GitHub Copilot?
57+
## CodeRabbit with other AI code generators like GitHub Copilot?
6058

6159
Code reviews remain essential, whether the code is written by a human or a bot.
6260
This is mainly because the perspective of the reviewer differs from that of the
@@ -66,7 +64,7 @@ code-generation tools hold immense potential, it's important to recognize that
6664
these generators are still in their early stages and may not be equipped to
6765
auto-generate meaningful code for moderately complex applications.
6866

69-
### How is CodeRabbit different from existing code review tools?
67+
## CodeRabbit is different from existing code review tools
7068

7169
Traditional code review tools excel in linting and static analysis, but they
7270
fall short in providing context-aware, conversational feedback with actionable

0 commit comments

Comments
 (0)