This page contains our best-practice advice for setting up CodeRabbit, and then configuring its code review behavior.
CodeRabbitAI
for you as soon as you connect your GitHub organization to CodeRabbit. On other platforms, such as Bitbucket Cloud or Gitlab, you must set this account up yourself.
For platform-specific instructions about setting up this user, see Integrate with Git platforms.
.coderabbit.yaml
file in your repository.coderabbit.yaml
file to repositories, as well. Using this file has several advantages over using only the web interface:
.coderabbit.yaml
take precedence over the settings defined for that repository or for your organization using the CodeRabbit web interface.
For more information, see Add a configuration file.
!dist/**
tells CodeRabbit to disregard everything in your repository’s top-level dist
directory when preparing a code review.
Reducing the number of contextual files that CodeRabbit needs to read and analyze when preparing a code review can help make its code reviews faster.
You can define path filters using the CodeRabbit web interface, or with a .coderabbit.yaml
file.
.coderabbit.yaml
file.