Skip to content

Commit 8c9249a

Browse files
authored
Merge branch 'main' into patch-1
2 parents 7d24fcd + f1f2314 commit 8c9249a

File tree

21 files changed

+365
-214
lines changed

21 files changed

+365
-214
lines changed

docs/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ description: The latest updates and changes to CodeRabbit.
55
sidebar_position: 13
66
---
77

8+
## January 13, 2025
9+
10+
### GitLab Pipeline Failure Detection and Remediation
11+
12+
We've expanded our pipeline error detection capabilities to GitLab Users! Just like with GitHub Actions, you can now automatically detect and fix pipeline failures in your GitLab CI/CD workflows.
13+
14+
---
15+
816
## January 2, 2025
917

1018
### GitHub Action Failure Detection and Remediation

docs/faq.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ In-trial and open-source plans have lower rate limits than the paid plan. In all
124124

125125
The following limits enforced _per developer_:
126126

127-
| Feature | Free Plan | Trial Plan | OSS Plan | Pro/Lite Plan |
128-
| ---------------- | ------------------------------------------ | ----------------------------- | ----------------------------- | ----------------------------- |
129-
| Files per hour | 200/hour | 150/hour | 150/hour | 300/hour |
130-
| Files per PR | 125 | 75 | 75 | 150 |
131-
| Reviews per hour | 3 back-to-back, then 3/hour (Summary only) | 3 back-to-back, then 2/hour | 2 back-to-back, then 2/hour | 4 back-to-back, then 4/hour |
132-
| Chat | N/A | 25 back-to-back, then 50/hour | 10 back-to-back, then 25/hour | 25 back-to-back, then 50/hour |
127+
| Feature | Free Plan | Trial Plan | OSS Plan | Lite Plan | Pro Plan |
128+
| ---------------- | ------------------------------------------ | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- |
129+
| Files per hour | 200/hour | 150/hour | 150/hour | 300/hour | 300/hour |
130+
| Files per PR | 125 | 75 | 75 | 150 | 150 |
131+
| Reviews per hour | 3 back-to-back, then 3/hour (Summary only) | 3 back-to-back, then 2/hour | 2 back-to-back, then 2/hour | 4 back-to-back, then 4/hour | 8 back-to-back, then 8/hour |
132+
| Chat | N/A | 25 back-to-back, then 50/hour | 10 back-to-back, then 25/hour | 25 back-to-back, then 50/hour | 25 back-to-back, then 50/hour |
133133

134134
## Integration Guide {#integration-guide}
135135

docs/finishing-touches/docstrings.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@ The presence of an unsupported software forge in this list does not constitute a
5454

5555
The checked languages are supported:
5656

57-
- [ ] Bash
58-
- [ ] C
57+
- [x] Bash
58+
- [x] C
5959
- [x] C++
60-
- [ ] C#
60+
- [x] C#
6161
- [x] Elixir
6262
- [x] Go
6363
- [ ] Haskell
6464
- [x] Java
6565
- [x] JavaScript
66-
- [ ] Kotlin
67-
- [ ] Lua
68-
- [ ] Php
66+
- [x] Kotlin
67+
- [x] Lua
68+
- [x] Php
6969
- [x] Python
70-
- [ ] React TypeScript
70+
- [x] React TypeScript
7171
- [x] Ruby
72-
- [ ] Rust
72+
- [x] Rust
7373
- [ ] Scala
74-
- [ ] Swift
74+
- [x] Swift
7575
- [x] TypeScript
7676

7777
The presence of an unsupported language in this list does not constitute a commitment to support it in the future. Remember that the docstrings feature is in [beta](/early-access#beta).
7878

7979
:::note
80-
In the case of JavaScript and TypeScript, there are tons of ways to declare functions. At the moment, we only support the keyword `function` at the top level.
80+
In the case of JavaScript and TypeScript and the React versions of both, there are tons of ways to declare functions. At the moment, we only support the keyword `function` at the top level.
8181
:::
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Adding Organizations
3+
description: Learn how to add new organizations to CodeRabbit
4+
sidebar_label: Adding Organizations
5+
sidebar_position: 5
6+
---
7+
8+
To add new organizations to CodeRabbit, follow these steps:
9+
10+
1. Navigate to [coderabbit.ai](https://coderabbit.ai)
11+
2. Click the "Refresh" button next to your organizations list to check for new organizations
12+
3. Find the organization you want to add in the list
13+
4. Click the "Grant" button next to the organization name
14+
15+
![Checking for new organizations](../../static/img/getting-started/check-for-new-orgs.png)
16+
17+
![Granting permission to organization](../../static/img/getting-started/grant-permission.png)
18+
19+
This will grant CodeRabbit access to the selected organization, allowing it to:
20+
21+
- Read organization and team membership
22+
- Read organization projects
23+
- Access user email addresses (read-only)
24+
25+
> Note: Organizations control which applications are allowed to access their private data. You may need organization admin approval to complete this process.

docs/guides/commands.md

Lines changed: 83 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,83 @@
1-
---
2-
title: CodeRabbit Commands
3-
sidebar_label: CodeRabbit Commands
4-
description:
5-
CodeRabbit offers various commands that can be invoked as PR comments to
6-
control the review process.
7-
sidebar_position: 4
8-
---
9-
10-
The following commands are available (invoked as PR comments):
11-
12-
- `@coderabbitai pause` to pause the reviews on a PR.
13-
- `@coderabbitai resume` to resume the paused reviews.
14-
- `@coderabbitai ignore` to ignore the reviews on a PR.
15-
- `@coderabbitai review` to trigger an incremental review. This is useful when
16-
automatic reviews are disabled for the repository.
17-
- `@coderabbitai full review` to do a full review from scratch and review all
18-
the files again.
19-
- `@coderabbitai summary` to regenerate the summary of the PR.
20-
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
21-
- `@coderabbitai configuration` to show the current CodeRabbit configuration for
22-
the repository.
23-
- `@coderabbitai help` to get help.
24-
- `@coderabbitai generate docstrings` to generate docstrings for functions in the PR. Learn more about [docstrings generation](/finishing-touches/docstrings).
1+
# CodeRabbit Commands
2+
3+
> Control your code reviews directly from pull request comments using CodeRabbit's command system. Each command starts with `@coderabbitai` followed by the specific action you want to take.
4+
5+
## Review Control Commands
6+
7+
### Managing Reviews
8+
9+
| Command | Description | Use Case |
10+
| --------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------- |
11+
| `@coderabbitai review` | Triggers an incremental review of new changes | When automatic reviews are disabled or you want to manually trigger a review |
12+
| `@coderabbitai full review` | Performs a complete review of all files from scratch | When you want to get fresh insights on the entire PR |
13+
| `@coderabbitai summary` | Regenerates the PR summary | When you want an updated overview after making changes |
14+
15+
### Review Flow Control
16+
17+
| Command | Description | Use Case |
18+
| ---------------------- | ---------------------------------------- | --------------------------------------------------- |
19+
| `@coderabbitai pause` | Temporarily stops reviews on the PR | When you're making multiple rapid changes |
20+
| `@coderabbitai resume` | Restarts reviews after a pause | When you're ready for CodeRabbit to review again |
21+
| `@coderabbitai ignore` | Permanently disables reviews for this PR | When you want to handle the review process manually |
22+
23+
### Comment Management
24+
25+
| Command | Description | Use Case |
26+
| ----------------------- | --------------------------------------- | ------------------------------------------------------- |
27+
| `@coderabbitai resolve` | Resolves all CodeRabbit review comments | When you've addressed all feedback and want to clean up |
28+
29+
### Documentation Commands
30+
31+
| Command | Description | Use Case |
32+
| ----------------------------------- | -------------------------------------------- | --------------------------------------------------- |
33+
| `@coderabbitai generate docstrings` | Generates docstrings for functions in the PR | When you need automatic documentation for your code |
34+
| `@coderabbitai configuration` | Shows current CodeRabbit settings | When you need to check or export your configuration |
35+
36+
### Help & Support
37+
38+
| Command | Description | Use Case |
39+
| -------------------- | ------------------------------------------ | ------------------------------------------ |
40+
| `@coderabbitai help` | Displays available commands and usage info | When you need guidance on using CodeRabbit |
41+
42+
## Best Practices
43+
44+
### Review Workflow
45+
46+
- Start with `@coderabbitai review` for checking new changes
47+
- Use `@coderabbitai full review` when major changes require a fresh perspective
48+
- Generate summaries after significant updates using `@coderabbitai summary`
49+
50+
### Managing Large Changes
51+
52+
- Use `@coderabbitai pause` before making multiple commits
53+
- Resume reviews with `@coderabbitai resume` when ready
54+
- Consider `@coderabbitai full review` after substantial changes
55+
56+
### Documentation Flow
57+
58+
- Run `@coderabbitai generate docstrings` after finalizing function implementations
59+
- Learn more about [docstring generation](/finishing-touches/docstrings)
60+
61+
## Tips
62+
63+
- Commands are case-insensitive (`@coderabbitai REVIEW` works the same as `@coderabbitai review`)
64+
- Commands can be issued by anyone with write access to the repository
65+
- Multiple commands can be used in sequence as needed
66+
- Use `@coderabbitai configuration` to export your settings before making changes
67+
68+
## Command Response Time
69+
70+
- Most commands (pause, resume, ignore) take effect immediately
71+
- Review commands typically complete within a few minutes, depending on PR size
72+
- Docstring generation time varies based on the number of functions
73+
74+
## Troubleshooting
75+
76+
If a command doesn't seem to work:
77+
78+
1. Check that you have the necessary repository permissions
79+
2. Verify the command syntax
80+
3. Look for any response from CodeRabbit in the PR comments
81+
4. Use `@coderabbitai help` for command guidance
82+
83+
Need help? Join our community on [Discord](https://discord.gg/coderabbit) or contact our support team.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Issue Integrations
3+
description: Learn about CodeRabbit's integrations with issue tracking systems like Jira and Linear.
4+
sidebar_label: Issue Integrations
5+
sidebar_position: 5
6+
---
7+
8+
CodeRabbit integrates with popular issue tracking systems to provide context from linked and related issues while reviewing code.
9+
10+
## Jira {#jira}
11+
12+
```mdx-code-block
13+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
14+
15+
<ProPlanNotice />
16+
```
17+
18+
### CodeRabbit App
19+
20+
1. Navigate to [integrations][integrations] in the CodeRabbit app.
21+
2. Toggle the Jira switch to enable the integration.
22+
23+
Upon enabling the Jira integration, CodeRabbit will redirect you to the Jira login page. Enter your Jira credentials to authenticate the integration.
24+
25+
### CodeRabbit Configuration
26+
27+
1. Add Jira's Project Keys to the `knowledge_base.jira.project_keys` field in your project's CodeRabbit configuration file at `.coderabbit.yaml`.
28+
29+
## Linear {#Linear}
30+
31+
```mdx-code-block
32+
<ProPlanNotice />
33+
```
34+
35+
### CodeRabbit App
36+
37+
1. Navigate to [integrations][integrations] in the CodeRabbit app.
38+
2. Toggle the Linear switch to enable the integration.
39+
40+
Upon enabling the Linear integration, CodeRabbit will redirect you to the Linear login page. Enter your Linear credentials to authenticate the integration.
41+
42+
### CodeRabbit Configuration
43+
44+
1. Add Linear's Team Keys to the `knowledge_base.linear.team_keys` field in your project's CodeRabbit configuration file at `.coderabbit.yaml`.
45+
46+
[integrations]: https://app.coderabbit.ai/integrations

docs/integrations/knowledge-base.md

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -7,78 +7,20 @@ sidebar_position: 4
77

88
CodeRabbit utilizes an internal knowledge base that integrates with several external services to provide a seamless review and issue management experience.
99

10-
## Issues
10+
## Issue Tracking Integration
1111

12-
The issues knowledge base allows CodeRabbit to use the context from linked and related issues while reviewing the code.
13-
14-
### Jira {#jira}
15-
16-
```mdx-code-block
17-
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
18-
19-
<ProPlanNotice />
20-
```
21-
22-
#### CodeRabbit App
23-
24-
1. Navigate to [integrations][integrations] in the CodeRabbit app.
25-
2. Toggle the Jira switch to enable the integration.
26-
27-
Upon enabling the Jira integration, CodeRabbit will redirect you to the Jira login page. Enter your Jira credentials to authenticate the integration.
28-
29-
#### CodeRabbit Configuration
30-
31-
1. Add Jira's Project Keys to the `knowledge_base.jira.project_keys` field in your project's CodeRabbit configuration file at `.coderabbit.yaml`.
32-
33-
### Linear {#Linear}
34-
35-
```mdx-code-block
36-
<ProPlanNotice />
37-
```
38-
39-
#### CodeRabbit App
40-
41-
1. Navigate to [integrations][integrations] in the CodeRabbit app.
42-
2. Toggle the Linear switch to enable the integration.
43-
44-
Upon enabling the Linear integration, CodeRabbit will redirect you to the Linear login page. Enter your Linear credentials to authenticate the integration.
45-
46-
#### CodeRabbit Configuration
47-
48-
1. Add Linear's Team Keys to the `knowledge_base.linear.team_keys` field in your project's CodeRabbit configuration file at `.coderabbit.yaml`.
49-
50-
[integrations]: https://app.coderabbit.ai/integrations
12+
CodeRabbit can integrate with your issue tracking systems to provide better context during code reviews. For details on setting up issue tracking integrations, see our [Issue Integrations](./issue-integrations.md) guide.
5113

5214
## Learnings {#learnings}
5315

5416
You can tell the bot to remember things about either specific lines in files, or generally about the entire repository, or even across repositories.
5517

56-
For example you can add a comment in a PR to chat directly with CodeRabbit. `@coderabbitai always remember to enforce camelCase`.
18+
For example, you can add a comment in a PR to chat directly with CodeRabbit. `@coderabbitai always remember to enforce camelCase`.
5719

5820
Or you can comment directly on some lines of code in the PR. `@coderabbitai do not complain about lack of error handling here, it is handled higher up the execution stack.`
5921

6022
:::tip Video Tutorial
61-
Watch our [video walkthrough on learnings](https://www.youtube.com/watch?v=Yu0cmmOYA-U) for more information.
62-
:::
63-
64-
## Self-hosted knowledge base {#self-hosted}
65-
66-
For self-hosted / on-premises deployments, you can enable the knowledge base features by setting `SELF_HOSTED_KNOWLEDGE_BASE=true` in the environment variables for your self-hosted docker image.
6723

68-
You must also be running ChromaDB. Use image `chromadb/chroma:0.5.20`. In your CodeRabbit docker image environment variables, set `CHROMADB_URL` to point to the hostname where ChromaDB can be reached. For persistance of your ChromaDB data, mount `/chroma/chroma` in the container to a volume mount. For more information on ChromaDB docker deployment, including how to set up authentication, refer to the [official documentation](https://docs.trychroma.com/deployment/docker). CodeRabbit will use `CHROMA_CLIENT_AUTH_CREDENTIALS` if it is set.
69-
70-
By default, CodeRabbit will store its data in the `coderabbitai/data` branch, unless you set a value for `SELF_HOSTED_KNOWLEDGE_BASE_BRANCH=<branch_name>`.
71-
72-
### Walkthrough
73-
74-
- Set up a ChromaDB service on your cloud provider of choice. There is extensive documentation for generic Docker deploys, as well as cloud native deployments, in the [official Chroma documentation](https://docs.trychroma.com/deployment)
75-
- Configure your environment variables for your CodeRabbit self-hosted deploy to be able to access Chroma. Documentation is available for [GitHub](/self-hosted/github#prepare-an-env-file).
76-
- Restart your CodeRabbit service so it has access to the new environment variable settings.
77-
- Create a new PR in your SCM platform.
78-
- Add a comment to the PR to tell CodeRabbit to remember something.
79-
80-
`@coderabbitai always make sure to enforce camelCase`
24+
Watch our [video walkthrough on learnings](https://www.youtube.com/watch?v=Yu0cmmOYA-U) for more information.
8125

82-
- CodeRabbit should respond that it has added a learning.
83-
- Check out the branch called `coderabbit/data` in the repository (or whatever branch name you have set for `SELF_HOSTED_KNOWLEDGE_BASE_BRANCH`). It should contain a file called learnings.json with an entry containing what you told it to remember.
84-
- Future PRs should utilize the contents of this learnings file. Congratulations! You have configured the CodeRabbit Self-hosted knowledge base.
26+
:::

docs/overview/why-coderabbit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ CodeRabbit is built for production environments with:
348348
349349
### Three Steps to Better Code Reviews
350350

351-
1. **Sign in** with [GitHub](/platforms/github-com), [GitLab](/platforms/gitlab-com), or [Azure DevOps](/platforms/azure-devops)
351+
1. **Sign in** with [GitHub](../platforms/github-com.md), [GitLab](../platforms/gitlab-com.mdx), or [Azure DevOps](../platforms/azure-devops.md)
352352
2. Select and add repositories in CodeRabbit dashboard
353353
3. That's it. You're good to go.
354354

0 commit comments

Comments
 (0)