Before you start
- You need a pull request in the repository. Anyone who can comment on it can run the command.
- Know the configuration priority, so the source labels below make sense.
Show the resolved configuration
- Open a pull request in the repository.
- Post
@coderabbitai configurationas the entire text of a comment. The command works on every Git platform. - Read the reply. Its Configuration used line names the source mode, the repository, branch, entry file and commit CodeRabbit read, and the layers that contributed. The full resolved YAML follows in a collapsed CodeRabbit configuration section. A
# Source:comment above each value names the layer that supplied it, including defaults. A list carries one comment for all of its entries, and an object with keys carries no comment of its own.
Read the source labels
Each# Source: comment uses one of these labels.
With inheritance on, a layer label ends in
(base) for the layer that started the walk or (inherited) for a parent merged into it. For example, Repository YAML (base) followed by Organization UI (inherited) means the repository file inherits from the organizationâs saved settings.
The output doesnât label TypeScript files separately. A value that comes from a specific file in a TypeScript configuration carries that fileâs name as its label. Everything else shows
Repository YAML (base) or Central YAML (base). Only the Layers line says Repository TS config or Central TS config.Find the file a review used
Each review records the file it read. Open the reviewâs Review info section on the pull request and expand Run configuration.
The selected file alone doesnât show values that inheritance or global overrides supplied. Run
@coderabbitai configuration to see what those layers supply now. Values can differ from what a past review used. To change which branch a repository reads, see Choose the configuration branch.
Read the output with its limits in mind
- The command shows the configuration resolved at the moment you post it. A past review used the configuration recorded in its own Run configuration.
- The resolved YAML uses the setting names used at run time. With schema V3, the reply says the YAML is an internal V2 runtime format and not a file to copy.
- The output doesnât prove that directory documents loaded during a review.
Read the configuration through the API
Call the effective-configuration operation to read the repositoryâs current configuration without a pull request. It takes only a repository ID, so it doesnât show a configuration that a pull requestâs own branch changes. It returns the resolved YAML and alayers array with each layerâs source and YAML. When CodeRabbit canât resolve the configuration, it returns complete: false with a reason. The key needs the configuration:read scope.
Check the result
Confirm that the value you changed shows the label you expect. A value from the layer you edited means the change applies. A different label means another layer outranks it. If so, continue with Fix settings that arenât applied.Whatâs next
Fix settings that aren't applied
Match a symptom to its cause and fix it.
How CodeRabbit resolves configuration
See the order in which CodeRabbit combines layers.
Automate configuration
Read, preview, and change configuration with the API, MCP, and CLI.