Move existing UI configuration to a YAML file?Use the
@coderabbitai configuration command on any PR to get the current configuration in a YAML format. You can then copy the configuration to a .coderabbit.yaml file in the root of your repository.Configure CodeRabbit using a YAML File
.coderabbit.yaml configuration file must be located in the root of the repository. The configuration present in the feature branch under review will be automatically detected and used by CodeRabbit for that review.
Example Configuration
.coderabbit.yaml
Configuration Options
The configuration file supports numerous options for customizing CodeRabbit’s behavior. For the complete list of available configuration options and their descriptions, see the configuration reference.Configuration Reference
Complete documentation of all options
Configuration Examples
Ready-to-use examples for popular frameworks and languages
Shared configuration
If you are self-hosting CodeRabbit in an air-gapped environment, you can use the shared configuration feature to share the configuration across multiple repositories. You can either reference a publicly accessible configuration file via URL or reference a configuration file that CodeRabbit can read through the same platform connection it uses for reviews. To use shared configuration, you need to:- Create a
.coderabbit.yamlfile and host it in a location that is either publicly accessible (e.g., a web server or public GitHub Gist) or in a repository that the CodeRabbit bot can read on the same platform as the repository under review. - Create a
.coderabbit.yamlfile in the root of your repository with the following content:
- GitHub
- GitLab
- External URL (not recommended)
GitHub repositories use the owner/repository format.