You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **high_level_summary**: CodeRabbit generates a high level summary of the changes (default:`true`).
84
-
- **poem**: Indicates whether a creative poem should be included in the review (default:`true`).
85
-
- **review_status**: Indicates the status of the review (default:`true`).
86
-
- **collapse_walkthrough**: Collapses the walkthrough comment (default:`false`).
87
-
- **path_filters**: Specifies file patterns to exclude or include for a review, such as `!dist/**` and `src/**.tsx`, using glob notation.
88
-
- **path_instructions**: Provides specific additional guidelines for code review based on file paths. In the given example, JavaScript files are singled out for checks against the Google JavaScript style guide. File path accepts glob pattern
89
-
- **auto_review**: Manages settings for automated code reviews, such as:
#### version 1: `deprecated` (Please use version [version 2](/guides/customize-coderabbit))
101
124
102
125
```yaml
103
126
settings:
104
-
# Enables automatic reviewing of draft pull requests.
105
-
enable_draft_pr_reviews: true
106
-
# Specifies additional base/target branches to be reviewed. Accept regex pattern.
107
-
additional_branches_to_be_reviewed:
108
-
- "master"
109
-
- "yaml/test"
110
-
# Disables generation of release notes.
111
-
disable_high_level_summary: false
112
-
# Specific review instructions for certain file paths. File paths accept glob pattern
113
-
path_based_instructions:
114
-
- path: "**/*.js"
115
-
instructions: "Review the javascript code against the google javascript style guide and point out any mismatches"
116
-
- path: "tests/**/*"
117
-
instructions:
118
-
"Review the following unit test code written using the Mocha test library. Ensure that:
119
-
- The code adheres to best practices associated with Mocha.
120
-
- Descriptive test names are used to clearly convey the intent of each test."
121
-
# Comma separated list of keywords in the title that should be ignored.
122
-
ignored_pr_titles: "WIP"
123
-
# ISO Code for the review language.
124
-
review_language: "en"
125
-
# Disables review and other status comments.
126
-
disable_review_status: false
127
-
# Add walkthrough comment in a collapsible section.
128
-
collapse_walkthrough_comment: true
129
-
# Disable automatic code reviews for this repository.
130
-
disable_review: false
127
+
# Enables automatic reviewing of draft pull requests.
128
+
enable_draft_pr_reviews: true
129
+
# Specifies additional base/target branches to be reviewed. Accept regex pattern.
130
+
additional_branches_to_be_reviewed:
131
+
- "master"
132
+
- "yaml/test"
133
+
# Disables generation of release notes.
134
+
disable_high_level_summary: false
135
+
# Specific review instructions for certain file paths. File paths accept glob pattern
136
+
path_based_instructions:
137
+
- path: "**/*.js"
138
+
instructions:
139
+
"Review the javascript code against the google javascript style guide
140
+
and point out any mismatches"
141
+
- path: "tests/**/*"
142
+
instructions:
143
+
"Review the following unit test code written using the Mocha test
144
+
library. Ensure that: - The code adheres to best practices associated
145
+
with Mocha. - Descriptive test names are used to clearly convey the
146
+
intent of each test."
147
+
# Comma separated list of keywords in the title that should be ignored.
148
+
ignored_pr_titles: "WIP"
149
+
# ISO Code for the review language.
150
+
review_language: "en"
151
+
# Disables review and other status comments.
152
+
disable_review_status: false
153
+
# Add walkthrough comment in a collapsible section.
154
+
collapse_walkthrough_comment: true
155
+
# Disable automatic code reviews for this repository.
156
+
disable_review: false
131
157
```
132
158
133
159
<!--  -->
134
160
135
161
This configuration file consists of the following settings:
136
162
137
-
1. **enable_draft_pr_reviews**: Set to **false** to disable draft pull request(PR) reviews.
138
-
2. **additional_branches_to_be_reviewed**: Define additional branches to be reviewed besides the default branch.
139
-
3. **disable_high_level_summary**: If set to **true**, disables high-level summary generation.
140
-
4. **path_based_instructions**: Allows you to specify instructions based on file paths. In this example, instructions for Python and JavaScript files are provided, encouraging adherence to the Google style guide.
141
-
5. **ignored_pr_titles**: Specifies ignored PR titles, in this case, "WIP" (Work in Progress).
163
+
1. **enable_draft_pr_reviews**: Set to **false** to disable draft pull
164
+
request(PR) reviews.
165
+
2. **additional_branches_to_be_reviewed**: Define additional branches to be
166
+
reviewed besides the default branch.
167
+
3. **disable_high_level_summary**: If set to **true**, disables high-level
168
+
summary generation.
169
+
4. **path_based_instructions**: Allows you to specify instructions based on file
170
+
paths. In this example, instructions for Python and JavaScript files are
171
+
provided, encouraging adherence to the Google style guide.
172
+
5. **ignored_pr_titles**: Specifies ignored PR titles, in this case, "WIP" (Work
173
+
in Progress).
142
174
6. **review_language**: Sets the review language to French ("fr").
143
175
7. **disable_poem**: If set to **false**, enables the "poem" feature.
144
-
8. **early_access_program**: Determines whether to enable the early access program (set to **false** in this case).
145
-
9. **exclude_file_patterns**: Specifies patterns for excluding certain files from review, such as `!dist/**` and `!**.md`.
146
-
10. **limit_reviews_by_label**: Limits reviews by label, targeting "first_bug" label reviews.
147
-
11. **disable_review**: Totally disables automatic code reviews for the repository.
148
-
12. **disable_review_status**: This is the comment posted for each incremental review status. This removes the review status comment. Reviews will still take place. However, optional comments added to the review status will not be posted.
149
-
13. **collapse_walkthrough_comment**: Specifies whether to collapse walkthrough comments on the review.
**Language Selection:** Select the natural language in which you want the review feedback. CodeRabbit supports most of the widely used languages. The default language is English.
210
+
**Language Selection:** Select the natural language in which you want the review
211
+
feedback. CodeRabbit supports most of the widely used languages. The default
212
+
language is English.
166
213
167
-
**Disable High Level Summary:** This allows disabling high level summary added with the pull request description.
214
+
**Disable High Level Summary:** This allows disabling high level summary added
**Disable Reviews:** Disables automatic code reviews for the repository. Reviews can be initiated on-demand using CodeRabbit commands.
221
+
**Disable Reviews:** Disables automatic code reviews for the repository. Reviews
222
+
can be initiated on-demand using CodeRabbit commands.
174
223
175
-
**Enable Draft Pull request Reviews:** Select whether CodeRabbit should review the draft pull requests.
224
+
**Enable Draft Pull request Reviews:** Select whether CodeRabbit should review
225
+
the draft pull requests.
176
226
177
-
**Configure reviews using pull request labels:** Select specific pull request labels for which reviews should occur.
227
+
**Configure reviews using pull request labels:** Select specific pull request
228
+
labels for which reviews should occur.
178
229
179
230
**File Pattern:** Include or exclude specific file patterns from the review.
180
231
181
-
Please note that code reviews commence with new pull requests or incremental commits to existing pull requests once the CodeRabbit app is installed. Should you have any questions or require assistance, our support team is here to help.
232
+
Please note that code reviews commence with new pull requests or incremental
233
+
commits to existing pull requests once the CodeRabbit app is installed. Should
234
+
you have any questions or require assistance, our support team is here to help.
0 commit comments