You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split the current chat commands page into three pages: a reference page,
a troubleshooting guide, and a best practices guide.
Replace the chat commands page with two task-orience how-to guides,
one about controlling code reviews, and one about generating improvements.
Add a new overview page for the code review process.
description: An overview of CodeRabbit's core code review features.
4
+
sidebar_label: Overview
5
+
---
6
+
7
+
One of the core features of CodeRabbit is its ability to proactively review
8
+
new pull requests on your code repository.
9
+
10
+
CodeRabbit reviews take the form of pull request comments that
11
+
include summaries, analyses, and initial critiques of the proposed changes.
12
+
This information, usually added to pull requests within minutes, can help your team perform more rapid, better-informed code reviews.
13
+
14
+
The following sections present an overview of this feature. For a hands-on example that lets you experience a CodeRabbit code review using
15
+
a real repository, see [Quickstart](/getting-started/quickstart).
16
+
17
+
## Automatically review pull requests {#review}
18
+
19
+
After you [integrate CodeRabbit with your repository](/platforms), CodeRabbit proceeds
20
+
to automatically review every subsequent pull request, as soon as each one is created.
21
+
22
+
A CodeRabbit code review consists of a single, multi-part comment attached to the pull request.
23
+
The comment contains a detailed summary and analysis of the changes,
24
+
as well as a listing of problems or areas for potential improvement that it found.
25
+
26
+
CodeRabbit
27
+
uses a variety of open-source linters and security tools to provide this analysis. CodeRabbit
28
+
also consults a number of large language models (LLMs) to further analyze and critique the proposed changes,
29
+
using all of the content of your repository as context. The code-review comment that CodeRabbit attaches
30
+
to your pull request synthesizes and summarizes all of the information collected from these different sources.
31
+
32
+
For more information
33
+
on the open-source tools that CodeRabbit applies and how you can configure its use of them,
34
+
see [Configure third-party tool use](/tools).
35
+
36
+
For more information about the graph analysis that CodeRabbit includes with its reviews
37
+
when available, see [CodeRabbit Code Graph Analysis](/integrations/code-graph-analysis).
38
+
39
+
### Events that trigger automated reviews {#events}
40
+
41
+
By default, the following activity in your repository triggers CodeRabbit to
42
+
perform a code review:
43
+
44
+
- If CodeRabbit sees a new pull request, then it immediately performs a full review
45
+
of the proposed code changes.
46
+
- If an open pull request that CodeRabbit has already reviewed gets modified with another
47
+
commit, then CodeRabbit performs an incremental review that focuses on the new commit.
48
+
49
+
### Example code reviews {#examples}
50
+
51
+
The following real pull requests, hosted on GitHub, demonstrate some example CodeRabbit
52
+
review comments.
53
+
54
+
-[A modest refactoring of Markdown-based documentation source](https://github.com/coderabbitai/coderabbit-docs/pull/325), demonstrating a CodeRabbit graph analysis.
55
+
-[A large change that added many files](https://github.com/tyaga001/devtoolsacademy/pull/44), demonstrating incremental automated reviews of subsequent commits.
56
+
57
+
## Interact with CodeRabbit reviews {#interact}
58
+
59
+
After CodeRabbit attaches its initial code-review comment to a pull request, you can
60
+
directly interact with CodeRabbit by mentioning its username, `@coderabbitai`, in comments
61
+
that you post to the pull request.
62
+
63
+
These interactions can serve several purposes:
64
+
65
+
- Free-form discussion about the pull request and the ongoing code review.
66
+
- Commands to have CodeRabbit perform specific actions regarding the code review.
67
+
- Prompts to have CodeRabbit generate its own improvements to the branch under review.
68
+
69
+
### Chat with CodeRabbit {#chat}
70
+
71
+
You can have open-ended, natural-language discussion with CodeRabbit during a code review, treating it
72
+
as an LLM-powered chat bot that has your entire code repository available for context. For more information, see [CodeRabbit Chat](/guides/agent_chat).
73
+
74
+
### Manage CodeRabbit review behavior {#manage}
75
+
76
+
CodeRabbit recognizes a variety of keyword-based commands that let you control its
77
+
behavior during a code review, including the following:
78
+
79
+
- Pause or resume automated reviews of the pull request.
80
+
- Manually request a review, when automated reviews are paused.
81
+
- Resolve all open comments authored by CodeRabbit.
82
+
83
+
For more information, see [Control and manage code reviews](/guides/commands).
84
+
85
+
### Generate improvements {#generate}
86
+
87
+
You can command CodeRabbit to generate improvements to the branch under review.
88
+
CodeRabbit accomplishes this by publishing a new branch based on the branch under review,
89
+
and cerating a new pull request for your own review.
90
+
91
+
Available code-generation commands let you request the following from CodeRabbit:
92
+
93
+
- Implement the suggestions for improvements that CodeRabbit has made in its earlier code review comments.
94
+
- Generate inline documentation for any undocumented functions that this pull request proposes to add.
95
+
96
+
For more information, see [Generate improvements](/guides/generate-improvements).
97
+
98
+
## What's next {#whats-next}
99
+
100
+
-[Control and manage code reviews](/guides/commands)
Copy file name to clipboardExpand all lines: docs/guides/commands.md
+96-60Lines changed: 96 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -3,92 +3,128 @@ title: Control and manage code reviews
3
3
description: Learn how to control CodeRabbit using commands in pull request comments
4
4
---
5
5
6
-
# CodeRabbit Commands
6
+
This page is about issuing direct commands to CodeRabbit during code reviews.
7
+
For a general overview of performing code reviews with CodeRabbit, see [Review pull requests](/guides/code-review-overview).
7
8
8
-
> 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.
9
+
You can control CodeRabbit's behavior with a specific pull request by mentioning the
10
+
username of its bot, `@coderabbitai`, alongside keywords in comments or the pull
11
+
request description, as specified by the next sections of this page.
9
12
10
-
## Review Control Commands
13
+
For a complete CodeRabbit command reference, see [Code review command reference](/reference/review-commands).
|`@coderabbitai review`| Triggers an incremental review of new changes | When automatic reviews are disabled or you want to manually trigger a review |
17
-
|`@coderabbitai full review`| Performs a complete review of all files from scratch | When you want to get fresh insights on the entire PR |
18
-
|`@coderabbitai summary`| Regenerates the PR summary | When you want an updated overview after making changes |
17
+
By default, CodeRabbit automatically reviews every new pull request created in
18
+
your repository. It updates its review with with comments whenever the pull request has new commits
19
+
pushed to it.
19
20
20
-
### Review Flow Control
21
+
The following sections show you how to tell CodeRabbit to modify this behavior with
22
+
a specific pull request, such as pausing reviews, or resolving open comments.
0 commit comments