Skip to content

Commit 0149932

Browse files
committed
Merge branch 'main' into refactor/gitlab-docs-with-PAT-change
2 parents 4025213 + 7c3a3aa commit 0149932

File tree

8 files changed

+172
-80
lines changed

8 files changed

+172
-80
lines changed

docs/changelog.md

+8
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

+6-6
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

+10-10
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
:::

docs/guides/commands.md

+83-24
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.
+46
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

+2-40
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,9 @@ 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

docs/platforms/gitlab-com.md

+12
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,15 @@ The webhook `https://coderabbit.ai/gitlabHandler` will now be installed for the
140140
width="1000"
141141
/>
142142
</div>
143+
144+
### Troubleshooting
145+
146+
:::note
147+
148+
If you are experiencing issues with the webhook, such as coderabbit not being able to access the repository, or not reviewing pull requests, you can manually delete the webhook to the repository.
149+
150+
Then refresh the repository page in the CodeRabbit app and you can reinstall the webhook.
151+
152+
If you cannot install the webhook please check that your GitLab user has the necessary permissions to install the webhook and the PAT is not expired.
153+
154+
:::

static/schema/schema.v2.json

+5
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@
156156
"default": true,
157157
"description": "Set the commit status to 'pending' when the review is in progress and 'success' when it is complete."
158158
},
159+
"fail_commit_status": {
160+
"type": "boolean",
161+
"default": false,
162+
"description": "Set the commit status to 'failure' when the PR cannot be reviewed by CodeRabbit for any reason."
163+
},
159164
"collapse_walkthrough": {
160165
"type": "boolean",
161166
"default": false,

0 commit comments

Comments
 (0)