coderabbit
repository in your organization and add your .coderabbit.yaml
file - CodeRabbit automatically applies these settings to any repository that doesn’t have its own configuration.
Organization-wide consistency
Single source of truth for code review standards across all repositories
Simplified management
Update settings once instead of modifying each repository individually
Configuration hierarchy
Repository configs override central configs, which override organization defaults - giving you flexibility when needed
How configuration resolution works
CodeRabbit checks for configuration in this priority order:Priority | Source | Location |
---|---|---|
1 (Highest) | Repository file | .coderabbit.yaml in the repository |
2 | Central repository | .coderabbit.yaml in coderabbit repository |
3 | Repository settings | CodeRabbit UI - Repository Settings |
4 | Organization settings | CodeRabbit UI - Organization Settings |
5 (Lowest) | Default settings | CodeRabbit schema defaults |
- Repository file:
Path: .coderabbit.yaml
- Central repository:
Repository: coderabbit/.coderabbit.yaml
- UI settings:
CodeRabbit UI
Setup
Critical requirement: You must install CodeRabbit on the central
coderabbit
repository. CodeRabbit needs access to read the configuration file.1
Create the central repository
Create a repository named
coderabbit
in your organization. The location depends on your platform:- GitHub:
organization/coderabbit
- GitLab:
group/coderabbit
(orgroup/subgroup/coderabbit
for nested groups) - Azure DevOps:
project/coderabbit
- Bitbucket Cloud:
workspace/coderabbit
2
Add your configuration
Create a
.coderabbit.yaml
file in the repository root with your organization’s settings:3
Install CodeRabbit
Install CodeRabbit on the central
coderabbit
repository through your platform’s installation process.4
Verify configuration
Check a repository that doesn’t have its own
.coderabbit.yaml
file. The configuration source should show Repository: coderabbit/.coderabbit.yaml
in the CodeRabbit UI.GitLab hierarchical configuration
GitLab supports team-specific configurations through its nested group structure. CodeRabbit automatically finds the closestcoderabbit
repository in your group hierarchy, allowing different teams to have their own settings while maintaining organization-wide defaults.
Configuration inheritance example:
Project path | Configuration used |
---|---|
company/team-a/subteam/project1 | company/team-a/subteam/coderabbit |
company/team-a/project2 | company/team-a/coderabbit |
company/team-b/project3 | company/coderabbit |
Platform limitations
- Azure DevOps: Each project requires its own
coderabbit
repository - no cross-project configuration sharing - Bitbucket Server: Central configuration not yet implemented - use individual repository settings
Repository overrides
Individual repositories can override central configuration by adding their own.coderabbit.yaml
file. This allows repository-specific customization while maintaining organization-wide defaults.
Related topics
- Configuration overview - Understanding CodeRabbit configuration options
- Organization settings - Managing organization-level settings
- Repository settings - Configuring individual repositories
- YAML template - Complete configuration reference