-
Notifications
You must be signed in to change notification settings - Fork 31
docs: improve readability and structure of coderabbit commands page #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,83 @@ | ||
--- | ||
title: CodeRabbit Commands | ||
sidebar_label: CodeRabbit Commands | ||
description: | ||
CodeRabbit offers various commands that can be invoked as PR comments to | ||
control the review process. | ||
sidebar_position: 4 | ||
--- | ||
|
||
The following commands are available (invoked as PR comments): | ||
|
||
- `@coderabbitai pause` to pause the reviews on a PR. | ||
- `@coderabbitai resume` to resume the paused reviews. | ||
- `@coderabbitai ignore` to ignore the reviews on a PR. | ||
- `@coderabbitai review` to trigger an incremental review. This is useful when | ||
automatic reviews are disabled for the repository. | ||
- `@coderabbitai full review` to do a full review from scratch and review all | ||
the files again. | ||
- `@coderabbitai summary` to regenerate the summary of the PR. | ||
- `@coderabbitai resolve` resolve all the CodeRabbit review comments. | ||
- `@coderabbitai configuration` to show the current CodeRabbit configuration for | ||
the repository. | ||
- `@coderabbitai help` to get help. | ||
- `@coderabbitai generate docstrings` to generate docstrings for functions in the PR. Learn more about [docstrings generation](/finishing-touches/docstrings). | ||
# CodeRabbit Commands | ||
|
||
> 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. | ||
|
||
## Review Control Commands | ||
|
||
### Managing Reviews | ||
|
||
| Command | Description | Use Case | | ||
| --------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------- | | ||
| `@coderabbitai review` | Triggers an incremental review of new changes | When automatic reviews are disabled or you want to manually trigger a review | | ||
| `@coderabbitai full review` | Performs a complete review of all files from scratch | When you want to get fresh insights on the entire PR | | ||
| `@coderabbitai summary` | Regenerates the PR summary | When you want an updated overview after making changes | | ||
|
||
### Review Flow Control | ||
|
||
| Command | Description | Use Case | | ||
| ---------------------- | ---------------------------------------- | --------------------------------------------------- | | ||
| `@coderabbitai pause` | Temporarily stops reviews on the PR | When you're making multiple rapid changes | | ||
| `@coderabbitai resume` | Restarts reviews after a pause | When you're ready for CodeRabbit to review again | | ||
| `@coderabbitai ignore` | Permanently disables reviews for this PR | When you want to handle the review process manually | | ||
|
||
### Comment Management | ||
|
||
| Command | Description | Use Case | | ||
| ----------------------- | --------------------------------------- | ------------------------------------------------------- | | ||
| `@coderabbitai resolve` | Resolves all CodeRabbit review comments | When you've addressed all feedback and want to clean up | | ||
|
||
### Documentation Commands | ||
|
||
| Command | Description | Use Case | | ||
| ----------------------------------- | -------------------------------------------- | --------------------------------------------------- | | ||
| `@coderabbitai generate docstrings` | Generates docstrings for functions in the PR | When you need automatic documentation for your code | | ||
| `@coderabbitai configuration` | Shows current CodeRabbit settings | When you need to check or export your configuration | | ||
|
||
### Help & Support | ||
|
||
| Command | Description | Use Case | | ||
| -------------------- | ------------------------------------------ | ------------------------------------------ | | ||
| `@coderabbitai help` | Displays available commands and usage info | When you need guidance on using CodeRabbit | | ||
|
||
## Best Practices | ||
|
||
### Review Workflow | ||
|
||
- Start with `@coderabbitai review` for checking new changes | ||
- Use `@coderabbitai full review` when major changes require a fresh perspective | ||
- Generate summaries after significant updates using `@coderabbitai summary` | ||
|
||
### Managing Large Changes | ||
|
||
- Use `@coderabbitai pause` before making multiple commits | ||
- Resume reviews with `@coderabbitai resume` when ready | ||
- Consider `@coderabbitai full review` after substantial changes | ||
|
||
### Documentation Flow | ||
|
||
- Run `@coderabbitai generate docstrings` after finalizing function implementations | ||
- Learn more about [docstring generation](/finishing-touches/docstrings) | ||
|
||
## Tips | ||
|
||
- Commands are case-insensitive (`@coderabbitai REVIEW` works the same as `@coderabbitai review`) | ||
- Commands can be issued by anyone with write access to the repository | ||
- Multiple commands can be used in sequence as needed | ||
- Use `@coderabbitai configuration` to export your settings before making changes | ||
|
||
## Command Response Time | ||
|
||
- Most commands (pause, resume, ignore) take effect immediately | ||
- Review commands typically complete within a few minutes, depending on PR size | ||
- Docstring generation time varies based on the number of functions | ||
|
||
## Troubleshooting | ||
|
||
If a command doesn't seem to work: | ||
|
||
1. Check that you have the necessary repository permissions | ||
2. Verify the command syntax | ||
3. Look for any response from CodeRabbit in the PR comments | ||
4. Use `@coderabbitai help` for command guidance | ||
|
||
Need help? Join our community on [Discord](https://discord.gg/coderabbit) or contact our support team. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.