Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88f9806

Browse files
add note on config priority
1 parent80140c6 commit88f9806

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎docs/guides/configuration-overview.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,28 @@ For more information, see [Set your repository preferences](/guides/repository-s
4646

4747
While the web interface provides and easier way to explore the available configuration options for your repository, we recommend using a`.coderabbit.yaml` file[as a best practice](/guides/setup-best-practices#yaml).
4848

49+
##Configuration priority {#priority}
50+
51+
CodeRabbit follows a specific hierarchy when determining which configuration settings to use. Understanding this priority system helps you manage your configuration effectively:
52+
53+
###Priority order (highest to lowest)
54+
55+
1.**Local`.coderabbit.yaml` file of head branch**
56+
2.**Repository settings** (web UI)
57+
3.**Organization settings** (web UI)
58+
59+
###How priority works
60+
61+
-**If you have a local`.coderabbit.yaml` file in your source or head branch**: All repository and organization settings are ignored. Only the local YAML file configuration is used. Anything not defined in that file uses default settings.
62+
-**If you don't have a local YAML file but have enabled repository settings**: Organization settings are ignored. Only repository settings are used.
63+
-**If you have organization settings and repository settings are disabled**: Only organization settings are used.
64+
65+
###Configuration inheritance
66+
67+
When a configuration source is active, it completely overrides all lower-priority sources. For example, if you set`reviews.tools.github-checks.timeout_ms` to`900000` in organization settings, but you have a local`.coderabbit.yaml` file that doesn't define this setting, CodeRabbit will use the default value of`90000` instead of the organization setting.
68+
69+
This means that configuration is not merged or inherited - the highest priority source takes complete control over all settings.
70+
4971
##Initial configuration {#initial}
5072

5173
The[Initial configuration guide](/guides/initial-configuration) tours you through several settings that we

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp