Skip to content

Commit ae47e75

Browse files
committed
Merge branch 'main' into hasit/docs-cleanup
2 parents 4e35ea0 + f506b6d commit ae47e75

File tree

10 files changed

+197
-61
lines changed

10 files changed

+197
-61
lines changed

docs/about/pricing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ CodeRabbit.
4141

4242
These are the hourly usage limits for each developer per repository:
4343

44-
- Number of files reviewed per hour: 100 Files
44+
- Number of files reviewed per hour: 150 Files
4545
- Number of reviews per hour (includes incremental reviews): 9
4646
- Number of conversations per hour: 50
4747

docs/guides/delete-account.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ look at the next section for additional steps required by the user.
9797
3. Select <strong>Remove Member</strong> and confirm to remove the CodeRabbit
9898
from your project
9999

100+
### Azure DevOps
101+
102+
#### Uninstalling CodeRabbit from your Azure DevOps project
103+
104+
1. Navigate to your <strong>Project Settings</strong> in the Azure DevOps UI where CodeRabbit is installed.
105+
2. Under <strong>Project Settings</strong>, go to <strong>Service Hooks</strong>.
106+
3. Select the webhooks that are added by CodeRabbit.
107+
4. Click the <strong>Delete</strong> icon at the top of the page.
108+
5. Remove the CodeRabbit user or delete the <strong>Personal Access Token</strong> associated with the user used for reviews.
109+
100110
:::warning
101111

102112
The steps are necessary to completely off-board CodeRabbit from your

docs/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
sidebar_label: Introduction
55
sidebar_position: 1
66
description:
7-
CodeRabbit is an innovative, AI-first code reviewer. It provides context-aware
7+
CodeRabbit is an innovative, AI-powered code reviewer. It provides context-aware
88
review feedback on a pull request within minutes, thereby significantly
99
reducing the time and effort associated with manual code reviews.
1010
slug: "/"
@@ -14,7 +14,7 @@ slug: "/"
1414
<iframe 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>
1515
</div>
1616

17-
**CodeRabbit** is an innovative, AI-first code reviewer. It provides
17+
**CodeRabbit** is an innovative, AI-powered code reviewer. It provides
1818
context-aware review feedback on a pull request within minutes, thereby
1919
significantly reducing the time and effort associated with manual code reviews.
2020
Additionally, it brings a different perspective to the reviews and finds issues
@@ -46,7 +46,7 @@ Data storage: Code downloaded during the review process is temporarily stored in
4646
memory and deleted once the review is completed. The code is not stored or used for
4747
any other purpose. However, CodeRabbit enhances future reviews for your organization by
4848
storing the embeddings of the learnings generated from chat conversations. Additionally,
49-
it integrates embeddings from issues in workflow systems (Liner, Jira, GitHub/GitLab issues)
49+
it integrates embeddings from issues in workflow systems (Linear, Jira, GitHub/GitLab issues)
5050
to assess the impact of code changes on existing issues.
5151

5252
Compliance and Data Privacy: Your data is kept confidential, isolated by the

docs/platforms/azure-devops.md

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,101 @@
11
---
22
title: Integrating CodeRabbit with Azure DevOps
33
description: Integrate CodeRabbit with Azure DevOps.
4-
sidebar_label: Azure DevOps (Beta)
4+
sidebar_label: Azure DevOps
55
sidebar_position: 5
66
---
77

8-
This guide will assist you in effectively integrating CodeRabbit with Azure DevOps.
8+
This guide will assist you in effectively integrating CodeRabbit with Azure
9+
DevOps.
910

1011
## Prerequisites
1112

12-
* An active Azure DevOps account.
13-
* Use of organizational email addresses is required; personal email addresses are not supported for this integration.
13+
- An active Azure DevOps account.
14+
- Use of organizational email addresses is required; personal email addresses
15+
are not supported for this integration.
1416

1517
## Integration Instructions
18+
1619
1. Log in to the CodeRabbitAI application.
17-
2. After logging in, you will be redirected to a page displaying Microsoft Apps consent requests. Please forward these requests to your administrator for approval.
20+
2. After logging in, you will be redirected to a page displaying Microsoft Apps
21+
consent requests. Please forward these requests to your administrator for
22+
approval.
1823

1924
:::warning
2025

21-
If you are an administrator, you may approve the applications directly. If not, please contact your administrator to request approval for the applications.
26+
If you are an administrator, you may approve the applications directly. If not,
27+
please contact your administrator to request approval for the applications.
2228

2329
:::
2430

2531
![azure devops apps consent](/img/integrations/azure_apps_consent_page.png)
2632

2733
3. Once your administrator has approved the applications, click "Continue."
28-
4. You will be redirected to the "Onboarding" page, where you can select the organization you wish to integrate with.
29-
5. On the "Azure DevOps User" page, enter your Personal Access Token for Azure DevOps.
30-
![azure devops user page](/img/integrations/azure_devops_user_page.png)
31-
6. To install CodeRabbit on a repository, toggle the switch on the "Repositories" page.
34+
4. You will be redirected to the "Onboarding" page, where you can select the
35+
organization you wish to integrate with.
36+
5. On the "Azure DevOps User" page, enter your Personal Access Token for Azure
37+
DevOps.
38+
![azure devops user page](/img/integrations/azure_devops_user_page.png)
39+
6. To install CodeRabbit on a repository, toggle the switch on the
40+
"Repositories" page.
3241

3342
## How it works
3443

35-
For the CodeRabbit app to post reviews on merge requests, it needs to interact with the Azure DevOps API, which requires a Personal Access Token. This token can be generated by creating a Personal Access Token from one of your existing users.
44+
For the CodeRabbit app to post reviews on merge requests, it needs to interact
45+
with the Azure DevOps API, which requires a Personal Access Token. This token
46+
can be generated by creating a Personal Access Token from one of your existing
47+
users.
3648

37-
You can create a new user in Azure DevOps and generate a Personal Access Token for that user, following [our recommendations](#recommendations).
49+
You can create a new user in Azure DevOps and generate a Personal Access Token
50+
for that user, following [our recommendations](#recommendations).
3851

3952
## Azure DevOps Personal Access Tokens
4053

41-
To interact with the Azure DevOps API, a **Personal Access Token** is required. This token can be generated by creating a **Personal Access Token** from one of your existing users.
54+
To interact with the Azure DevOps API, a **Personal Access Token** is required.
55+
This token can be generated by creating a **Personal Access Token** from one of
56+
your existing users.
4257

43-
Upon first login to the application (immediately after the onboarding screen), you will need to add the Personal Access Token.
58+
Upon first login to the application (immediately after the onboarding screen),
59+
you will need to add the Personal Access Token.
4460

4561
![azure devops user modal](/img/integrations/azure_personal_access_token_add.png)
4662

4763
### Recommendations
4864

49-
* **Create a dedicated user for CodeRabbit** - This ensures the user is exclusively for CodeRabbit, allowing better access control.
50-
* **Use "CodeRabbit" as the username** - This makes the user easily recognizable for future reference.
51-
* **Use a dedicated email address** - This helps in easy identification and management.
52-
* **Use the CodeRabbit logo as the profile picture** - This further ensures easy recognition. You can download our logo from [here](/img/integrations/logo.svg "download").
65+
- **Create a dedicated user for CodeRabbit** - This ensures the user is
66+
exclusively for CodeRabbit, allowing better access control.
67+
- **Use "CodeRabbit" as the username** - This makes the user easily recognizable
68+
for future reference.
69+
- **Use a dedicated email address** - This helps in easy identification and
70+
management.
71+
- **Use the CodeRabbit logo as the profile picture** - This further ensures easy
72+
recognition. You can download our logo from
73+
[here](/img/integrations/logo.svg "download").
5374

5475
### Key Points to Remember
5576

56-
* Personal access tokens have expiration dates. Ensure the expiration date covers the duration of your intended use of the CodeRabbit app.
57-
* Code reviews will be attributed to the owner of the personal access token.
58-
* If the personal access token expires, you can add a new one via the CodeRabbit UI:
59-
* Navigate to the "AzureDevOps User" page in the sidebar.
60-
* Add the new token and click save.
77+
- Personal access tokens have expiration dates. Ensure the expiration date
78+
covers the duration of your intended use of the CodeRabbit app.
79+
- Code reviews will be attributed to the owner of the personal access token.
80+
- If the personal access token expires, you can add a new one via the CodeRabbit
81+
UI:
82+
- Navigate to the "AzureDevOps User" page in the sidebar.
83+
- Add the new token and click save.
6184

6285
### Generating a Personal Access Token
6386

64-
Azure DevOps provides an option to generate a personal access token for a user. Follow these steps to generate the token:
87+
Azure DevOps provides an option to generate a personal access token for a user.
88+
Follow these steps to generate the token:
6589

6690
1. Log in as the user intended for CodeRabbit reviews.
6791
2. Next to your avatar on the headers right side is a settings icon, click it.
6892
3. Choose "Personal Access Tokens"
6993
4. Click "New Token"
70-
5. Select the organization you want to use the token with or select "All accessible organizations."
94+
5. Select the organization you want to use the token with or select "All
95+
accessible organizations."
7196
6. Enter a name and an expiry date for the token.
72-
7. We need to have read & write access to "Work Items" & "Code" to post reviews on pull requests.
97+
7. We need to have read & write access to "Work Items" & "Code" to post reviews
98+
on pull requests.
7399
8. Click "Create"
74100

75101
![Generate Personal Access Token](/img/integrations/azure-access-token.png)

docs/platforms/github-enterprise-server.md

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
---
22
title: CodeRabbit for GitHub Enterprise Server
33
description: Integrate CodeRabbit with your GitHub Enterprise Server.
4-
sidebar_label: Github Enteprise Server
4+
sidebar_label: GitHub Enterprise Server
55
sidebar_position: 3
66
---
77

88
:::info
99

1010
This page is for GitHub Enterprise Server (Self-Hosted) users only.
11-
If you're using github.com, [log in to CodeRabbit](https://app.coderabbit.ai) and add your repositories from there
11+
If you're using github.com, [log in to CodeRabbit](https://app.coderabbit.ai)
12+
and add your repositories from there
1213

1314
:::
1415

15-
This page guides you through the process of integrating your Self-Managed GitHub with CodeRabbit.
16+
This page guides you through the process of integrating your Self-Managed GitHub
17+
with CodeRabbit.
1618

1719
To initiate the integration, we require specific information. This is essential
1820
for the initial setup of CodeRabbit within your domain. Once this setup is
@@ -31,26 +33,33 @@ organization and if we find an existing one, we will start the login process.
3133

3234
![Untitled](/img/integrations/self-hosted-github-host-url.png)
3335

34-
If the self-managed GitHub instance is not found, you will be required to enter more details for the onboarding.
36+
If the self-managed GitHub instance is not found, you will be required to enter
37+
more details for the onboarding.
3538

3639
### **Step 2: GitHub OAuth App**
3740

38-
Navigate to your GitHub Enterprise Server (Self-Hosted) Instance and follow the steps below to [create an OAuth App](https://docs.github.com/en/enterprise-server@latest/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app):
41+
Navigate to your GitHub Enterprise Server (Self-Hosted) Instance and follow the
42+
steps below to
43+
[create an OAuth App](https://docs.github.com/en/enterprise-server@latest/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app):
3944

4045
1. Sign in to your GitHub Enterprise account.
41-
2. In the upper-right corner of any page, click your profile photo, then click **Settings**.
46+
2. In the upper-right corner of any page, click your profile photo, then click
47+
**Settings**.
4248
3. In the left sidebar, click **Developer settings** > **OAuth Apps**.
4349
4. Click **New OAuth App**.
4450
5. Set the following fields:
4551
- **Application name**: `CodeRabbit OAuth`
4652
- **Homepage URL**: `https://coderabbit.ai`
47-
- **Application description**: `OAuth application for signing into CodeRabbit`
53+
- **Application description**:
54+
`OAuth application for signing into CodeRabbit`
4855
- **Authorization callback URL**: `https://app.coderabbit.ai/login`
4956
6. Click **Register application**.
5057

5158
![GitHub Create OAuth App](/img/integrations/github-create-oauth-app.png)
5259

53-
Once the OAuth App has been created, click on **Generate a new client secret** under the 'Client secrets' section and copy the secret as it will be visible once only
60+
Once the OAuth App has been created, click on **Generate a new client secret**
61+
under the 'Client secrets' section and copy the secret as it will be visible
62+
once only
5463

5564
Keep the following details handy:
5665

@@ -61,10 +70,13 @@ Keep the following details handy:
6170

6271
### **Step 3: GitHub App**
6372

64-
Navigate to your GitHub Enterprise Server (Self-Hosted) Instance and follow the steps below to [create a GitHub App](https://docs.github.com/en/enterprise-server@latest/apps/creating-github-apps/registering-a-github-app/registering-a-github-app):
73+
Navigate to your GitHub Enterprise Server (Self-Hosted) Instance and follow the
74+
steps below to
75+
[create a GitHub App](https://docs.github.com/en/enterprise-server@latest/apps/creating-github-apps/registering-a-github-app/registering-a-github-app):
6576

6677
1. Sign in to your GitHub Enterprise account.
67-
2. In the upper-right corner of any page, click your profile photo, then click **Settings**.
78+
2. In the upper-right corner of any page, click your profile photo, then click
79+
**Settings**.
6880
3. In the left sidebar, click **Developer settings** > **GitHub Apps**
6981
4. Click **New GitHub App**.
7082
5. Set the following fields:
@@ -100,9 +112,12 @@ Navigate to your GitHub Enterprise Server (Self-Hosted) Instance and follow the
100112
- Release
101113
6. Click **Create GitHub App**.
102114

103-
Once the GitHub App has been created, click on **Generate a new client secret** under the 'Client secrets' section and copy the secret as it will be visible once only.
115+
Once the GitHub App has been created, click on **Generate a new client secret**
116+
under the 'Client secrets' section and copy the secret as it will be visible
117+
once only.
104118

105-
Scroll down and click on **Generate a private key** under the 'Private keys' section and download the PEM file.
119+
Scroll down and click on **Generate a private key** under the 'Private keys'
120+
section and download the PEM file.
106121

107122
Keep the following details handy:
108123

@@ -127,18 +142,21 @@ Submit the details that were accumulated in previous steps:
127142
- GitHub App Webhook Secret
128143
- GitHub App Private Key
129144

130-
Click on Submit and the login process will be initiated.
131-
On subsequent visits, your setup will be automatically detected, allowing for direct login.
145+
Click on Submit and the login process will be initiated. On subsequent visits,
146+
your setup will be automatically detected, allowing for direct login.
132147

133148
### **Step 5: Install the GitHub App**
134149

135-
Navigate to the GitHub App that was created from your Github Enterprise Server (self-hosted) instance and click on the **Install App** tab.
136-
Then, install the GitHub App to your organization(s).
150+
Navigate to the GitHub App that was created from your GitHub Enterprise Server
151+
(self-hosted) instance and click on the **Install App** tab. Then, install the
152+
GitHub App to your organization(s).
137153

138154
:::warning
139155

140-
If you performed this step before Step 4, the installation event likely will have failed, and you will need to re-send the installation event.
141-
Navigate to the **Advanced** tab in the GitHub App and click on the **Redeliver** button for the failed `installation.created` event.
156+
If you performed this step before Step 4, the installation event likely will
157+
have failed, and you will need to re-send the installation event.
158+
Navigate to the **Advanced** tab in the GitHub App and click on the
159+
**Redeliver** button for the failed `installation.created` event.
142160

143161
:::
144162

docs/platforms/platforms.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ CodeRabbit supports various Git platforms to provide code review for your reposi
1818

1919
| Host | Support |
2020
| ------------------- | ---------------------------------- |
21-
| GitLab.com | [Supported](gitlab-com.md) |
21+
| GitLab.com | [Supported](gitlab-com.md) |
2222
| GitLab Self Managed | [Supported](self-hosted-gitlab.md) |
2323

2424
## Azure DevOps
2525

2626
| Host | Support |
2727
| ------------------- | ---------------------------------- |
28-
| Azure DevOps | [Supported](azure-devops.md) |
29-
| Azure DevOps Server | Coming soon |
28+
| Azure DevOps | [Supported](azure-devops.md) |
29+
| Azure DevOps Server | [Supported] |
3030

3131
## Bitbucket
3232

docs/tools/actionlint.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ sidebar_label: Actionlint
44
description: CodeRabbit's guide to Actionlint.
55
---
66

7-
[Actionlint](https://github.com/rhysd/actionlint/) is a static checker for GitHub Actions workflow files.
7+
[Actionlint](https://github.com/rhysd/actionlint/) is a static checker for
8+
GitHub Actions workflow files.
89

910
## Files
1011

11-
We look for `Github Action` files specifically in the following directory:
12+
We look for `GitHub Action` files specifically in the following directory:
1213

1314
- `.github/workflows/**/*.yml`
1415
- `.github/workflows/**/*.yaml"`

docs/tools/semgrep.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Semgrep
3+
sidebar_label: Semgrep
4+
description: CodeRabbit's guide to Semgrep.
5+
---
6+
7+
[Semgrep](https://semgrep.dev/) is a static analysis tool designed to scan code for security vulnerabilities and code quality issues..
8+
9+
## Files
10+
11+
Semgrep will run on the following files and extensions:
12+
13+
- `Apex`
14+
- `Bash`
15+
- `.c`
16+
- `.cpp`
17+
- `.cs`
18+
- `.clj`
19+
- `.dart`
20+
- `Dockerfile`
21+
- `.ex`
22+
- `.html`
23+
- `.go`
24+
- `.java`
25+
- `.js`
26+
- `.jsx`
27+
- `.json`
28+
- `.jl`
29+
- `.jsonnet`
30+
- `.kt`
31+
- `.kts`
32+
- `Lisp`
33+
- `.lua`
34+
- `.ml`
35+
- `.php`
36+
- `.py`
37+
- `.r`
38+
- `.rb`
39+
- `.rs`
40+
- `.scala`
41+
- `Scheme`
42+
- `.sol`
43+
- `.swift`
44+
- `.tf`
45+
- `.ts`
46+
- `.tsx`
47+
- `.yaml`
48+
- `.xml`
49+
- `ERB`
50+
- `Jinja`
51+
52+
## Configuration
53+
54+
Semgrep uses a YAML style configuration file.
55+
56+
Semgrep supports the following config files:
57+
58+
- User-defined config file set at `reviews.tools.semgrep.config_file` in your project's `.coderabbit.yaml` file or setting the "Review → Tools → Semgrep → Config File" field in CodeRabbit's settings page.
59+
60+
## Links
61+
62+
- [Semgrep Cli Reference](https://semgrep.dev/docs/cli-reference)

0 commit comments

Comments
 (0)