> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Repository settings

> Configure CodeRabbit's behavior for one repository or edit settings across multiple repositories using the web interface.

## Browse and modify your settings using the web interface

To view or modify your repository settings using the CodeRabbit web interface:

**1. Open Review settings**

Visit [the CodeRabbit web interface](https://app.coderabbit.ai) and open **Reviews > Review settings** in the sidebar.

**2. Select repository**

In **Select repositories**, select the repository's name to open its settings. If a repository or organization defaults is already open, first select the button at the top of the settings index, which shows the current selection, to return to **Select repositories**.

Selecting a name adds the repository to any repositories that are already checked. To edit only this repository, clear the other checkboxes first.

You can also open a repository's settings with the **Reviews** shortcut next to it on the **Repositories** page, or in **Connected repositories** on **Home**.

**3. Customize repository settings**

To customize this repository, set **UI settings** to **Repository settings**. While it's set to **Organization defaults**, the repository uses your organization defaults and its own settings are read-only. See [Choose the UI settings source](#choose-the-ui-settings-source).

**4. Modify settings**

Browse and modify your settings, then click **Apply changes**. **Review changes** lists your edits next to the saved values. For GitHub Cloud repositories, it also shows the effective configuration before and after you submit. Click **Submit changes** to save.

> [!NOTE]
>
> To find a setting, select its section in the settings index on the left, or press **Cmd+K** (Mac) or **Ctrl+K** (Windows/Linux) and search for it.

### Find and edit settings

When one repository is selected, the settings page shows every available setting in one form. The settings index on the left groups them into sections such as **General**, **Reviews**, **Chat**, and **Knowledge base**. **Reviews** expands into sub-pages such as **General**, **Auto review**, and **Tools**. Select a section to open it in the form.

The settings index is available once you select a repository or organization defaults. On narrow screens, select **Settings navigation** to open the selection button and the settings index.

To search for a setting instead, press **Cmd+K** (Mac) or **Ctrl+K** (Windows/Linux), or select **Search** in the sidebar, and type the setting's name. Each result shows the section that contains the setting, for example **Reviews > Auto review**, and selecting it opens that setting in the form.

To edit the configuration as text, select **Edit YAML** at the top of the settings index. The YAML editor has syntax highlighting, real-time schema validation, and clipboard support. It shows only non-default values, in the same format as `.coderabbit.yaml`, so you can move configuration between the web interface and repository files. To return to the form, select any section in the index.

> [!NOTE]
>
> In the YAML editor, validation errors must be resolved before saving changes.

### Preview

Next to the settings form, a live Preview panel shows a mock PR review comment that visualizes how your settings affect the information CodeRabbit displays in pull request reviews.

* Show or hide the preview with the **Preview** button next to **Apply changes**. On wide screens, the preview is open by default.
* Settings that affect the PR review output are tagged with **Preview**, so you can identify which settings have a visible impact.
* When you change a setting with preview support, the preview panel automatically scrolls to the affected section and highlights the change.

The preview includes sections such as the PR summary, CodeRabbit-generated summary, walkthrough with changes table, sequence diagrams, pre-merge check results, and finishing touches.

## Choose the UI settings source

When one repository is selected, the **UI settings** menu next to **Preview** and **Apply changes** controls which settings from the web interface apply to the repository:

| Choice | Effect |
| - | - |
| **Organization defaults** | CodeRabbit skips the repository's saved settings and uses your [organization defaults](https://docs.coderabbit.ai/guides/organization-settings.md). The page still shows the repository's saved settings, read-only. |
| **Repository settings** | CodeRabbit uses the repository's saved settings. This choice doesn't copy your organization defaults into them, so check settings such as automatic reviews before you apply it. |

A source change takes effect only when you apply your changes and submit them in **Review changes**.

Both sources are UI-level settings. A configuration file such as `.coderabbit.yaml`, in the repository or in your [central configuration](https://docs.coderabbit.ai/configuration/central-configuration.md) repository, can override them. See [Understanding configuration priority](https://docs.coderabbit.ai/guides/configuration-overview.md#understanding-configuration-priority) for the full order.

**Inheritance**, in the **General** section, is a separate setting. With **Repository settings**, it fills values that the repository leaves unset from parent levels such as organization defaults. Saved repository values, including defaults you haven't changed, take precedence over inherited values. With **Organization defaults**, CodeRabbit skips the repository's saved settings, including **Inheritance**. See [Configuration inheritance](https://docs.coderabbit.ai/configuration/configuration-inheritance.md).

The information button next to the menu, **About configuration sources**, summarizes these rules. To see the configuration that a pull request resolves to, and the source of each value, run `@coderabbitai configuration` on the pull request.

To choose the branch that supplies the repository's `.coderabbit.yaml`, use [Configuration source](#configuration-source-github-only). It is independent of the **UI settings** menu.

## Configuration source (GitHub only)

> [!NOTE]
>
> Configuration source is available for **GitHub Cloud repositories only**. GitLab, Bitbucket, Azure DevOps, GitHub Enterprise Server, and self-hosted CodeRabbit always use Auto.

With one repository selected, select **Configuration source** in the settings index. CodeRabbit organization admins can change this setting; other members who can open the repository's settings can view it. The setting is stored in CodeRabbit, outside your YAML file, and you save it with **Save changes** on its own page.

| Source | Behavior |
| - | - |
| **Auto** | Uses the standard configuration lookup. For a PR with repository YAML, this can use the YAML on the PR branch, even if that branch has an older copy. Existing trust checks and fallback behavior still apply. |
| **Default branch** | Reads repository YAML from the latest commit on the default branch, such as `main`. Trusted PR configuration changes can override it when the option below is enabled. |
| **Custom** | Reads repository YAML from the latest commit on a branch you name in the same repository. PR configuration edits do not override this source. |

For Custom, enter only the branch name, such as `review-config`. You do not select another repository or enter a file path. CodeRabbit looks for `.coderabbit.yaml` or `.coderabbit.yml` at the repository root on that branch. If both files exist, `.coderabbit.yaml` is used.

### When a PR can override Default branch

**Allow configuration changes from trusted PRs** is turned on by default when you select Default branch. With this option on, when a trusted contributor's PR intentionally adds, edits, deletes, or renames the configuration file, CodeRabbit uses the PR's configuration instead of the default branch's. Existing fork and external-contributor protections still apply.

An older YAML file that the PR branch inherited when it was created is not an intentional configuration change. Turn the option off if you want to use the default branch even when a trusted PR changes YAML. This option does not apply to Custom.

### Example: a PR branch created last month

Suppose a team member created `feature/search` from `main` last month, when `.coderabbit.yaml` set `language: es-ES`. Today, `main` sets `language: en-US`, and a separate `review-config` branch sets `language: fr-FR`. The PR changes application code only; it does not edit configuration. Assume no global override changes the language.

| Selected source | Repository YAML used | Review language |
| - | - | - |
| Auto | Existing YAML on `feature/search` | Spanish |
| Default branch | Latest YAML on `main` | English |
| Custom: `review-config` | Latest YAML on `review-config` | French |

Default branch lets this old PR use current review settings without rebasing. The trusted PR option does not change this result because the PR did not intentionally change configuration. If a trusted PR edits the YAML, the option lets that edit take precedence over the default branch.

### Validation and fallback

When you save a Custom source, CodeRabbit checks that it can read the branch and validates its YAML. If validation fails, the new source is not saved and your previous source stays active.

A saved source can become unavailable later, for example if its branch is deleted or its YAML becomes invalid. In that case, reviews fall back to Auto and show a warning that names the configuration used. The **Configuration source** page shows the same warning.

### Inheritance and verification

Configuration source changes **which repository YAML is loaded**. It does not change the **UI settings** source or the settings saved in the web interface. Existing [inheritance rules](https://docs.coderabbit.ai/configuration/configuration-inheritance.md) and organization or workspace global overrides still apply after the source is selected.

The `inheritance` value in the selected YAML controls whether CodeRabbit continues through the parent configuration chain. Selecting Default branch or Custom does not enable inheritance. With `inheritance: true`, parent levels can supply values as usual. With inheritance disabled, selecting a branch does not make those levels merge. See [the configuration hierarchy](https://docs.coderabbit.ai/configuration/configuration-inheritance.md#configuration-hierarchy) for the order of those levels.

To check which YAML a review used, expand **Run configuration** in the review's **Review info** on the PR. **Source mode** shows the source that supplied the YAML, and **Repository**, **Branch**, **File**, and **Commit** identify that YAML:

* When a trusted PR's configuration change takes precedence over Default branch, **Source mode** shows **Trusted PR override (Default branch policy)**, and the branch and commit are the PR's.
* When the selected source could not be loaded, **Source mode** shows **Auto (fallback from Default branch)** or **Auto (fallback from Custom)**.

The selected YAML alone doesn't describe values supplied by inheritance or global overrides. Run `@coderabbitai configuration` on the PR to see the resolved settings and the source of each value.

## Triage rules

[Triage rules](https://docs.coderabbit.ai/triage/rules.md) belong to your organization and are managed in **Triage > Rules**, not in repository settings. A rule applies to **All** repositories or only to the **Selected** repositories you add; to see the rules that affect one repository, [filter the rule list](https://docs.coderabbit.ai/triage/rules.md#manage-rules-and-inspect-activity) by that repository.

## Edit multiple repositories

In **Review settings**, open **Select repositories** and check each repository you want to edit, or check **All** to select every repository. Then click the **Edit** button below the list, which shows the number of selected repositories, for example **Edit 3 repositories**. Selecting a repository's name also adds it to the checked repositories and opens the editor. **Organization defaults** opens a separate editor and clears the repository selection; it isn't part of multi-repository edits.

For text, numbers, and on/off settings, only fields you edit are overwritten in the selected repositories' saved settings. Mixed values stay unchanged until you edit them.

For lists, choose how to apply your entries:

| Action | Result in each selected repository |
| - | - |
| **Add rules** / **Add items** (default) | Keeps the existing list and order, appends new entries, and skips identical entries. For path instructions, existing paths keep their instructions and are skipped. |
| **Update matching paths** | Available for path instructions. Updates every rule with exactly the same path string; paths absent from a repository are skipped. Matching doesn't compare which files the patterns cover. |
| **Replace all** | Replaces the entire list with your entries. An empty list clears the setting. |

For example, adding a rule for `src/**` preserves each repository's other path instructions. If a repository already has a `src/**` rule, **Add rules** keeps it; **Update matching paths** changes its instructions.

For list edits, click **Apply changes** to review each repository's before-and-after lists, then **Confirm changes** to save.

The multi-repository editor has no **UI settings** menu. Saving sets [**UI settings**](#choose-the-ui-settings-source) to **Repository settings** in each selected repository with changes, so its saved values, including fields you didn't edit, take effect in place of organization defaults. [Configuration priority](https://docs.coderabbit.ai/guides/configuration-overview.md#understanding-configuration-priority) still applies, including repository files and global overrides.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.