Integrate CodeRabbit into a GitHub repository that you own
Observe CodeRabbit perform a code review of a pull request that you initiate
Converse with CodeRabbit about the code review
4
>>> Prompt CodeRabbit to generate its own improvements to the pull request
Request code improvements
One of CodeRabbitās powerful features is its ability to not just identify issues, but also generate the code changes needed to fix them. Instead of manually implementing the suggestions from the review, you can ask CodeRabbit to do it for you. In this step, youāll use a CodeRabbit command to automatically generate documentation improvements for your Python code.Generate docstrings
Post the following as a new comment on your pull request:What CodeRabbit does next
After a few moments, CodeRabbit automatically performs the following actions:- Creates a new branch - CodeRabbit generates a new branch based on your
add-utilsbranch - Commits the changes - CodeRabbit adds properly formatted docstrings to your
simple_utils.pyfile - Opens a pull request - CodeRabbit creates a new pull request from the new branch back into
add-utils
Review the generated changes
Once CodeRabbit creates the new pull request with the docstrings:- Navigate to the new pull request
- Review the generated documentation
- Check that the docstrings accurately describe each function
- Merge the changes if they meet your standards
Other available commands
CodeRabbit supports many other commands to help you improve your code. For example:@coderabbitai generate tests- Create unit tests for your code@coderabbitai fix- Apply suggested fixes from the review@coderabbitai help- See all available commands