Skip to content

Commit 1850560

Browse files
karan925tyaga001
authored andcommitted
Coderabbit Docs Rework (wip)
1 parent 9f5cb6a commit 1850560

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2135
-0
lines changed

blog/2019-05-28-first-blog-post.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
slug: first-blog-post
3+
title: First Blog Post
4+
authors:
5+
name: Gao Wei
6+
title: Docusaurus Core Team
7+
url: https://github.com/wgao19
8+
image_url: https://github.com/wgao19.png
9+
tags: [hola, docusaurus]
10+
---
11+
12+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

blog/2019-05-29-long-blog-post.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
slug: long-blog-post
3+
title: Long Blog Post
4+
authors: endi
5+
tags: [hello, docusaurus]
6+
---
7+
8+
This is the summary of a very long blog post,
9+
10+
Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.
11+
12+
<!--truncate-->
13+
14+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
15+
16+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
17+
18+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
19+
20+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
21+
22+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
23+
24+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
25+
26+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
27+
28+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
29+
30+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
31+
32+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
33+
34+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
35+
36+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
37+
38+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
39+
40+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
41+
42+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
43+
44+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

blog/2021-08-01-mdx-blog-post.mdx

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
slug: mdx-blog-post
3+
title: MDX Blog Post
4+
authors: [slorber]
5+
tags: [docusaurus]
6+
---
7+
8+
Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
9+
10+
:::tip
11+
12+
Use the power of React to create interactive blog posts.
13+
14+
```js
15+
<button onClick={() => alert('button clicked!')}>Click me!</button>
16+
```
17+
18+
<button onClick={() => alert('button clicked!')}>Click me!</button>
19+
20+
:::
Loading

blog/2021-08-26-welcome/index.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
slug: welcome
3+
title: Welcome
4+
authors: [slorber, yangshun]
5+
tags: [facebook, hello, docusaurus]
6+
---
7+
8+
[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
9+
10+
Simply add Markdown files (or folders) to the `blog` directory.
11+
12+
Regular blog authors can be added to `authors.yml`.
13+
14+
The blog post date can be extracted from filenames, such as:
15+
16+
- `2019-05-30-welcome.md`
17+
- `2019-05-30-welcome/index.md`
18+
19+
A blog post folder can be convenient to co-locate blog post images:
20+
21+
![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)
22+
23+
The blog supports tags as well!
24+
25+
**And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.

docs/about.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
id: introduction
3+
title: What is CodeRabbit?
4+
sidebar_label: What is CodeRabbit?
5+
---
6+
7+
<head>
8+
<meta charSet="utf-8" />
9+
<meta name="title" content="CodeRabbit: AI-powered Code Reviews" />
10+
<meta name="description" content="Accelerate Code Reviews with AI" />
11+
12+
<meta property="og:type" content="website" />
13+
<meta property="og:url" content="https://coderabbit.ai/" />
14+
<meta property="og:title" content="CodeRabbit: AI-powered Code Reviews" />
15+
<meta property="og:description" content="Accelerate Code Reviews with AI" />
16+
<meta property="og:image" content="/preview_meta.jpg" />
17+
18+
<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
19+
<meta name="twitter:card" content="summary_large_image" />
20+
<meta name="twitter:title" content="CodeRabbit: AI-powered Code Reviews" />
21+
<meta name="twitter:description" content="Accelerate Code Reviews with AI." />
22+
</head>
23+
24+
**CodeRabbit** is an innovative, AI-first code reviewer. It provides context aware review feedback on a pull request within minutes, thereby significantly reducing the time and effort associated with manual code reviews. Secondly, it brings a different perspective to the reviews and finds issues often missed by the human eye. Developers can chat with the bot within the code, which allows them to provide additional context, ask questions, or have the bot generate code. It learns from your suggestions and gets better overtime.
25+
26+
**CodeRabbit** seamlessly integrates with GitHub and GitLab repositories, performing continuous, incremental reviews for each commit within a pull request. Review feedback is sent back to the pull requests and can be directly committed.
27+
28+
### How does CodeRabbit work?
29+
30+
**CodeRabbit** integrates into code repositories using GitHub or GitLab webhooks and monitors events related to Pull Request (PR) and Merge Request (MR) changes. A comprehensive review is performed when a PR or MR is created, and for incremental commits and comments addressed to the bot. The feedback is then sent directly back to the PR or MR.
31+
32+
![](./introduction/images/CodeRabbitFlow.png)
33+
34+
### Data, Privacy, and Security.
35+
36+
**CodeRabbit** does not use data collected during code reviews to train or influence the models. Queries to the Large Language Model (LLM) are ephemeral. Neither we nor the LLM we use share any data collected during the code review process with other third parties.
37+
38+
Does CodeRabbit store my Data? We store embeddings of your conversations, which are used to improve future reviews.
39+
40+
Compliance and Data Privacy: Your data is kept confidential, isolated, and used only to improve your reviews. Data storage complies with SOC2 Type II, GDPR, and HIPAA standards.
41+
42+
Opting Out: You can choose to opt out of data storage at any time. Opting out won't affect your access but will limit the personalization of the reviews.
43+
44+
### Do you need CodeRabbit with the AI code generators or co-pilot?
45+
46+
Code reviews remain essential, whether the code is written by a human or a bot. This is mainly because the perspective of the reviewer differs from that of the code generator, whether human or machine. This distinction is precisely why human peer reviews have been effective for so long. While AI-powered code-generation tools hold immense potential, it's important to recognize that these generators are still in their early stages and may not be equipped to auto-generate meaningful code for moderately complex applications.
47+
48+
### How is CodeRabbit different from existing code review tools?
49+
50+
Existing code review tools are good at linting and static code analysis; however, they lack context-aware, human-like review feedback.
51+
52+
For information on how to get started with **CodeRabbit**, please visit the [Get Started page](https://coderabbit.ai/docs/get-started/signup).

docs/changelog/changelogs.md

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
---
2+
title: Changelog
3+
id: changelog
4+
slug: /changelog
5+
description: Accelerate Code Reviews with AI
6+
image: "/preview_meta.jpg"
7+
---
8+
<head>
9+
<meta charSet="utf-8" />
10+
<meta name="title" content="CodeRabbit: AI-powered Code Reviews" />
11+
<meta name="description" content="Accelerate Code Reviews with AI" />
12+
13+
<meta property="og:type" content="website" />
14+
<meta property="og:url" content="https://coderabbit.ai/" />
15+
<meta property="og:title" content="CodeRabbit: AI-powered Code Reviews" />
16+
<meta property="og:description" content="Accelerate Code Reviews with AI" />
17+
<meta property="og:image" content="/preview_meta.jpg" />
18+
19+
<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
20+
<meta name="twitter:card" content="summary_large_image" />
21+
<meta name="twitter:title" content="CodeRabbit: AI-powered Code Reviews" />
22+
<meta name="twitter:description" content="Accelerate Code Reviews with AI" />
23+
</head>
24+
25+
Learn about the latest updates and bug fixes in CodeRabbit.
26+
27+
Product Updates
28+
29+
30+
## Request Changes Workflow
31+
32+
**Date: December 18, 2023**
33+
34+
Enable Request Changes review workflow for CodeRabbit reviews via `.coderabbit.yaml`
35+
Yaml field `request_changes_workflow` (default: `false`). When enabled, review comments are posted as request changes and CodeRabbit review will be marked approved once all the review comments are resolved.
36+
37+
## Learnings
38+
39+
**Date: December 5, 2023**
40+
41+
CodeRabbit can now learn from your conversations to fine-tune your reviews. If you encounter inaccurate feedback or something not relevant to your codebase, just let the bot know, and it will remember the context for the future. We understand that coding practices and standards evolve over time. Using the chat, you can inform the bot, and it will remove any existing learnings that are no longer relevant. This feature does not work, if you have opted out of data storage.
42+
43+
![](./images/learnings.png)
44+
45+
## Codebase Verification
46+
47+
**Date: December 5, 2023**
48+
49+
Verifies the reference of the changes on the overall codebase and identifies missing changes.
50+
51+
52+
![](./images/verification.png)
53+
54+
55+
## Jira and Linear Integrations
56+
57+
**Date: December 5, 2023**
58+
59+
You can now integrate Jira and Linear into CodeRabbit. This would be used for additional context while reviewing pull requests. If you use any of these systems, we recommend you integrate CodeRabbit. We will be adding more integrations over time.
60+
61+
62+
## Related Issues
63+
64+
**Date: December 5, 2023**
65+
66+
Identifies all issues affected by the code changes. This helps understand the impact on the overall product. It also assists in identifying duplicate issues or the impact on any other existing issues. This feature does not work, if you have opted out of data.
67+
68+
![](./images/related_issues.png)
69+
70+
## Issue Validation
71+
72+
**Date: November 5, 2023**
73+
74+
- **Issue Validation**:
75+
- CodeRabbit review can now assess the pull request changes against the linked GitHub or GitLab issue. Integration with other workflow systems including Jira and Linear is under development.
76+
77+
![](./images/issue-validation.png)
78+
79+
## Committable suggestions
80+
81+
**Date: November 1, 2023**
82+
83+
- **Code review comments**:
84+
- Review comments can now post committable suggestions that can be committed within the pull request with a single click.
85+
86+
![](./images/committable-suggestion.png)
87+
88+
## Resolve Command
89+
90+
**Date: October 28, 2023**
91+
92+
- **Resolve Command**:
93+
- Use `@coderabbitai resolve` to mark all the CodeRabbit review comments as resolved all at once.
94+
95+
## CodeRabbit Commands
96+
97+
**Date: October 23, 2023**
98+
99+
Introducing additional CodeRabbit commands for managing code reviews.
100+
101+
- **Pause Reviews**:
102+
- Use `@coderabbitai pause` in a PR comment to halt ongoing reviews.
103+
- **Resume Reviews**:
104+
- Enter `@coderabbitai resume` in a PR comment to continue paused reviews.
105+
- **On-Demand Reviews**:
106+
- Disable automatic reviews for your repository to switch to on-demand reviews.
107+
- Use `@coderabbitai review` in a PR comment. This command will override all review filters that might be set up in the repository settings and will initiate a one-time review.
108+
- **Help Command**:
109+
- You can at any time post `@coderabbitai help` in a PR comment to get the list of all valid commands.
110+
111+
112+
## Customization CodeRabbit with YML File
113+
114+
![code](./images/ymlrabbit.png)
115+
116+
**Date: October 12, 2023**
117+
118+
119+
CodeRabbit customizations made easy!
120+
You can now customize CodeRabbit using a YML file from your repository. To learn more, refer to our comprehensive [documentation on customizing CodeRabbit](https://coderabbit.ai/docs/get-started/customize-coderabbit).
121+
122+
## Path-Based Review Instructions in CodeRabbit
123+
124+
![code](./images/path.png)
125+
126+
**Date: September 21, 2023**
127+
128+
Introducing Path-Based Instructions CodeRabbit reviews now allow setting path-based instructions. This feature is particularly useful if you want reviewers to follow specific guidelines. For example, if you have a mono repo, this enables the setting of custom instructions by directories. It can also be used to set instructions for specific file types. For instance: */.js - ensure that the code adheres to the Google style guide.
129+
130+
[Learn More](https://coderabbit.ai/docs/get-started/prompt-customization)
131+
132+
## Introducing CodeRabbit for GitLab Integration
133+
134+
**Date: September 19, 2023**
135+
136+
CodeRabbit is now available for GitLab! We know many of you have been waiting for this integration. Thank you for your patience. Sign up for the free trial!
Loading
125 KB
Loading

docs/changelog/images/learnings.png

88.4 KB
Loading

docs/changelog/images/path.png

157 KB
Loading
79.7 KB
Loading
285 KB
Loading

docs/changelog/images/ymlrabbit.png

366 KB
Loading

docs/faq/faq.md

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: FAQs
3+
sidebar_label: FAQs
4+
description: Accelerate Code Reviews with AI
5+
image: "/preview_meta.jpg"
6+
---
7+
<head>
8+
<meta charSet="utf-8" />
9+
<meta name="title" content="CodeRabbit: AI-powered Code Reviews" />
10+
<meta name="description" content="Accelerate Code Reviews with AI" />
11+
12+
<meta property="og:type" content="website" />
13+
<meta property="og:url" content="https://coderabbit.ai/" />
14+
<meta property="og:title" content="CodeRabbit: AI-powered Code Reviews" />
15+
<meta property="og:description" content="Accelerate Code Reviews with AI" />
16+
<meta property="og:image" content="/preview_meta.jpg" />
17+
18+
<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
19+
<meta name="twitter:card" content="summary_large_image" />
20+
<meta name="twitter:title" content="CodeRabbit: AI-powered Code Reviews" />
21+
<meta name="twitter:description" content="Accelerate Code Reviews with AI" />
22+
</head>
23+
24+
#### **1. How accurate is CodeRabbit's review?**
25+
26+
Early adoption results for CodeRabbit have been highly promising, demonstrating significant accuracy in code reviews. However, it's crucial to understand that AI is an evolving field, and absolute 100% accuracy can't be guaranteed. Our technology is continuously learning and improving, aiming for the highest possible accuracy in reviews.
27+
28+
#### **2. Which programming languages does CodeRabbit support?**
29+
30+
CodeRabbit is designed to work with all programming languages. However, the proficiency of our AI models might vary between languages, which could slightly affect the accuracy of the review.
31+
32+
#### **3. Does CodeRabbit store my code or use it for training language models?**
33+
34+
We train our system using open source projects. For private repositories, neither CodeRabbit nor OpenAI LLMs use your code for training purposes.
35+
36+
#### **4. What Large Language Models does CodeRabbit use?**
37+
38+
CodeRabbit currently utilizes Open AI's GPT 4 and GPT 3.5. We're researching and testing upcoming LLMs to ensure we're offering the most precise reviews possible.
39+
40+
#### **5. Can I customize CodeRabbit?**
41+
42+
Reviews are customizable. For information, check out our [Get Started page](https://coderabbit.ai/docs/get-started/customize-coderabbit).
43+
44+
#### **6. Can I choose a language other than English for the reviews?**
45+
46+
CodeRabbit supports most widely-used languages. You can configure this in the repository settings.
47+
48+
#### **7. What access does CodeRabbit need to my repositories?**
49+
50+
CodeRabbit requests minimal access to perform code reviews and post comments on Pull Requests. On GitHub, it requires read access to metadata, code, discussions, issues, and read/write access to the pull requests. On GitLab, it requires read access to the repository, and the CodeRabbit Bot user requires a developer role.
51+
52+
#### **8. How can I add or remove users for my subscription?**
53+
54+
To manage users, log in to CodeRabbit and navigate to subscriptions. You can add or remove users as needed.
55+
56+
#### **9. How can I interact with the CodeRabbit bot?**
57+
58+
To interact with CodeRabbit's bot, reply to the CodeRabbit Comment. If there are team members collaborating on pull requests, the bot stays silent by default but can be engaged by tagging **@Coderabbitai**. This feature allows you to provide context, generate test cases, or ask for specific code suggestions, all within the context of your code lines or entire files.
59+
60+
#### **10. Can individual developers use CodeRabbit?**
61+
62+
Absolutely! Whether you're an individual developer or part of an organization, CodeRabbit can be your coding assistant, providing you with invaluable suggestions.
63+
64+
#### **11. Which branches are the pull requests reviewed on?**
65+
CodeRabbit reviews pull requests on the default branch.
66+
67+
#### **12. Is it possible for CodeRabbit to include additional branches for review?**
68+
Yes, you can change it under the repository settings.
69+
70+
#### **13. CodeRabbit Usage Limits**
71+
72+
There are hourly rate limits for each developer per repository:
73+
- Number of files reviewed per hour: 100 Files
74+
- Number of reviews per hour (includes incremental reviews): 9
75+
- Number of conversations per hour: 50
76+
77+
In-trial and open-source plans have lower rate limits than the paid plan. In all cases, we re-allow further reviews/conversations after a brief timeout.
78+
79+
Please note that we're continually innovating and enhancing our application with new capabilities. Stay tuned and follow us for updates as new exciting features are built. We're committed to making your experience with CodeRabbit even better.
80+
81+
If you have further questions or need additional information, don't hesitate to reach out to us at [[email protected]](mailto:[email protected]).

0 commit comments

Comments
 (0)