Skip to content

Commit 4b24fe0

Browse files
Merge branch 'refs/heads/main' into add_azure_devops_saas_page
2 parents 0b0c711 + 80f6c6f commit 4b24fe0

13 files changed

+119
-48
lines changed

docs/about/pricing.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Pricing
33
sidebar_label: Pricing
4-
description:
5-
Learn about the plans, pricing, and subscription management of CodeRabbit.
4+
description: Learn about the plans, pricing, and subscription management of CodeRabbit.
65
---
76

87
This section covers the plans, pricing, and subscription management of

docs/guides/ondemand-reports.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: On-demand Reports
33
sidebar_label: On-demand Reports (Beta)
4-
description:
5-
CodeRabbit offers a way to generate on-demand reports using a simple API request
4+
description: CodeRabbit offers a way to generate on-demand reports using a simple API request
65
sidebar_position: 6
76
---
87

docs/introduction.md

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ 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-
1817
**CodeRabbit** is an innovative, AI-first code reviewer. It provides
1918
context-aware review feedback on a pull request within minutes, thereby
2019
significantly reducing the time and effort associated with manual code reviews.

docs/platforms/platforms.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ CodeRabbit supports various Git platforms to provide code review for your reposi
1010
## GitHub
1111

1212
| Host | Support |
13-
|--------------------------|------------------------------------|
13+
| ------------------------ | ---------------------------------- |
1414
| GitHub.com | [Supported][login] |
1515
| GitHub Enterprise Server | [Supported](self-hosted-github.md) |
1616

1717
## GitLab
1818

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

2424
## Azure DevOps
2525

2626
| Host | Support |
27-
|---------------------|-------------|
27+
| ------------------- | ----------- |
2828
| Azure DevOps Cloud | Coming soon |
2929
| Azure DevOps Server | Coming soon |
3030

3131
## Bitbucket
3232

3333
| Host | Support |
34-
|-----------------------|-------------|
34+
| --------------------- | ----------- |
3535
| Cloud | Coming soon |
3636
| Bitbucket Data Center | Coming soon |
3737

docs/platforms/saas-gitlab.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ If your organization opts to use another user within the organization, you can d
3939

4040
#### Recommendations
4141

42-
* **Create a dedicated user for CodeRabbit** - This ensures the user is exclusively for CodeRabbit, allowing better access control.
43-
* **Use "CodeRabbit" as the username** - This makes the user easily recognizable for future reference.
44-
* **Use a dedicated email address** - This helps in easy identification and management.
45-
* **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").
42+
- **Create a dedicated user for CodeRabbit** - This ensures the user is exclusively for CodeRabbit, allowing better access control.
43+
- **Use "CodeRabbit" as the username** - This makes the user easily recognizable for future reference.
44+
- **Use a dedicated email address** - This helps in easy identification and management.
45+
- **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").
4646

4747
#### Key Points to Remember
4848

49-
* Personal access tokens have expiration dates. Ensure the expiration date covers the duration of your intended use of the CodeRabbit app.
50-
* Code reviews will be attributed to the owner of the personal access token.
51-
* If the personal access token expires, you can add a new one via the CodeRabbit UI:
52-
* Navigate to the "GitLab User" page in the sidebar.
53-
* Click the "Update" button on the displayed card to see the same modal as the initial login.
49+
- Personal access tokens have expiration dates. Ensure the expiration date covers the duration of your intended use of the CodeRabbit app.
50+
- Code reviews will be attributed to the owner of the personal access token.
51+
- If the personal access token expires, you can add a new one via the CodeRabbit UI:
52+
- Navigate to the "GitLab User" page in the sidebar.
53+
- Click the "Update" button on the displayed card to see the same modal as the initial login.
5454

5555
### Generating a Personal Access Token
5656

@@ -63,7 +63,7 @@ GitLab provides an option to generate a personal access token for a new user. Fo
6363
5. Click "Add New Token."
6464
6. Enter a name and an expiry date for the token.
6565
7. If no expiry date is entered, it defaults to 365 days from the current date.
66-
8. Ensure the following scopes are selected: `api`, `user`, `email`.
66+
8. Ensure the following scopes are selected: `api`, `read_api`, `read_user`.
6767
9. Click "Create Personal Access Token."
6868
10. Note down the token as it will only be displayed once.
6969

docs/platforms/self-hosted-github.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ complete, you can log in directly.
2020

2121
### **Step 1: Getting Started**
2222

23-
**Visit CodeRabbit:** Visit our [Login](https://coderabbit.ai/login) page and
23+
**Visit CodeRabbit:** Visit our [Login](https://coderabbit.ai/login) page and
2424
select Self-Hosted GitHub
2525

2626
![login-page](/img/integrations/login-self-hosted-github.png)

docs/platforms/self-hosted-gitlab.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ To initiate the integration, we require specific information. This is essential
1212
for the initial setup of CodeRabbit within your domain. Once this setup is
1313
complete, you can log in directly using the OAuth2 flow.
1414

15+
CodeRabbit supports GitLab `16.x` and above. Version `15.x` may experience unexpected issues such as review comments not being posted or the sign up process not working at all. While we won't block the integration, we recommend upgrading your GitLab instance to obtain the intended experience.
16+
1517
### **Step 1: Getting Started**
1618

1719
**Visit CodeRabbit:** Visit our [Login](https://coderabbit.ai/login) page and

docs/tools/detekt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Detekt will run on files with the following extensions:
1515

1616
## Configuration
1717

18-
Detekt uses a YAML style configuration file.
18+
Detekt uses a YAML style configuration file.
1919

2020
Detekt supports the following config files:
2121

docs/tools/regal.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Regal
3+
sidebar_label: Regal
4+
description: CodeRabbit's guide to Regal.
5+
---
6+
7+
[Regal](https://docs.styra.com/regal/) is a linter and language server for Rego.
8+
9+
## Files
10+
11+
Regal will run on files with the following extensions:
12+
13+
- `.rego`
14+
15+
## Configuration
16+
17+
Regal uses a YAML style configuration file. We look for the following config file:
18+
19+
- `.regal/config.yaml`
20+
21+
CodeRabbit will use the default settings based on the profile selected if no config file is found.
22+
23+
## Links
24+
25+
- [Regal Configuration](https://docs.styra.com/regal#configuration/)

docs/tools/tools.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ Remove extraneous f prefix
3737
## Supported Tools
3838

3939
| Technology | Tools |
40-
|:----------------------------|:-----------------------------------------------------------|
40+
| :-------------------------- | :--------------------------------------------------------- |
4141
| All | [Gitleaks][Gitleaks] |
42-
| GitHub Actions | [Actionlint][Actionlint] |
4342
| CloudFormation | [Checkov][Checkov] |
4443
| CSS | [Biome][Biome] |
4544
| Docker | [Hadolint][Hadolint], [Checkov][Checkov] |
45+
| GitHub Actions | [Actionlint][Actionlint] |
4646
| Go | [golangci-lint][golangci-lint] |
4747
| Helm | [Checkov][Checkov] |
4848
| Javascript | [Biome][Biome] |
@@ -55,6 +55,7 @@ Remove extraneous f prefix
5555
| Plaintext | [LanguageTool][LanguageTool] |
5656
| Protobuf | [Buf][Buf] |
5757
| Python | [Ruff][Ruff] |
58+
| Regal | [Regal][Regal] |
5859
| Ruby | [Rubocop][Rubocop] |
5960
| Shell (sh, bash, ksh, dash) | [ShellCheck][ShellCheck] |
6061
| Swift | [SwiftLint][SwiftLint] |
@@ -63,7 +64,6 @@ Remove extraneous f prefix
6364
| Typescript | [Biome][Biome] |
6465
| YAML | [YamlLint][YamlLint] |
6566

66-
6767
[ShellCheck]: ./shellcheck.md
6868
[Ruff]: ./ruff.md
6969
[Markdownlint]: ./markdownlint.md
@@ -79,4 +79,5 @@ Remove extraneous f prefix
7979
[Detekt]: ./detekt.md
8080
[Rubocop]: ./rubocop.md
8181
[Buf]: ./buf.md
82-
[Actionlint]: ./actionlint.md
82+
[Actionlint]: ./actionlint.md
83+
[Regal]: ./regal.md

package-lock.json

+37-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"docusaurus-json-schema-plugin": "^1.12.1",
2727
"postcss": "^8.4.32",
2828
"prism-react-renderer": "^2.3.0",
29-
"react": "^18.0.0",
3029
"react-ace": "^12.0.0",
3130
"react-dom": "^18.0.0",
3231
"tailwindcss": "^3.4.0"
@@ -35,6 +34,12 @@
3534
"@docusaurus/module-type-aliases": "^3.1.1",
3635
"@docusaurus/tsconfig": "^3.1.1",
3736
"@docusaurus/types": "^3.1.1",
37+
"@types/js-yaml": "^4.0.9",
38+
"@types/react": "^18.3.4",
39+
"ace-builds": "^1.36.1",
40+
"ajv": "^8.17.1",
41+
"js-yaml": "^4.1.0",
42+
"react": "^18.3.1",
3843
"typescript": "~5.2.2"
3944
},
4045
"browserslist": {

static/schema/schema.v2.json

+26
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,19 @@
576576
"default": {},
577577
"description": "Buf offers linting for Protobuf files."
578578
},
579+
"regal": {
580+
"type": "object",
581+
"properties": {
582+
"enabled": {
583+
"type": "boolean",
584+
"default": true,
585+
"description": "Enable Regal | Regal is a linter and language server for Rego. | v0.25.0"
586+
}
587+
},
588+
"additionalProperties": false,
589+
"default": {},
590+
"description": "Regal is a linter and language server for Rego."
591+
},
579592
"actionlint": {
580593
"type": "object",
581594
"properties": {
@@ -674,6 +687,19 @@
674687
},
675688
"additionalProperties": false,
676689
"default": {}
690+
},
691+
"pull_requests": {
692+
"type": "object",
693+
"properties": {
694+
"scope": {
695+
"type": "string",
696+
"enum": ["local", "global", "auto"],
697+
"default": "auto",
698+
"description": "Pull Requests | Specify the scope of pull requests to use for the knowledge base. 'local' uses the repository's pull requests, 'global' uses the organization's pull requests, and 'auto' uses repository's pull requests for public repositories and organization's pull requests for private repositories."
699+
}
700+
},
701+
"additionalProperties": false,
702+
"default": {}
677703
}
678704
},
679705
"additionalProperties": false,

0 commit comments

Comments
 (0)