@@ -55,8 +55,13 @@ reviews:
55
55
- " feat/.*"
56
56
tools :
57
57
ast-grep :
58
- rules_directory : " custom-rules-directory-name"
59
- utils_directory : " custom-utils-directory-name"
58
+ rule_dirs :
59
+ - " rules"
60
+ util_dirs :
61
+ - " utils"
62
+ packages :
63
+ - " ast-grep-essentials"
64
+ - " my-awesome-org/my-awesome-package" # public repository that contains ast-grep
60
65
chat :
61
66
auto_reply : true
62
67
` ` `
@@ -105,10 +110,11 @@ YAML settings:
105
110
apart from the default branch. Accepts regex pattern.
106
111
- **`tools`**: Configurations for the tools used in the review.
107
112
- **`ast-grep`**: Configurations for the `ast-grep` tool.
108
- - **`rules_directory `**: The directory name where the custom `ast-grep`
113
+ - **`rule_dirs `**: The directory name where the custom `ast-grep`
109
114
rules are stored.
110
- - **`utils_directory `**: The directory name where the custom `ast-grep`
115
+ - **`util_dirs `**: The directory name where the custom `ast-grep`
111
116
utils are stored.
117
+ - **`packages`**: A package allows you to share rules across multiple projects. Essentially, a package is a collection of ast-grep rules.
112
118
4. **`chat`** : Defines the behavior of CodeRabbit's bot in conversations.
113
119
- **`auto_reply`**: The bot automatically replies without the need of the
114
120
user tagging it (default : ` true` ).
@@ -155,11 +161,7 @@ settings:
155
161
# Disable automatic code reviews for this repository.
156
162
disable_review: false
157
163
# External tools configurations
158
- tools:
159
- # tools configuration for ast-grep
160
- ast-grep:
161
- rules_directory: "custom-rules-directory-name"
162
- utils_directory: "custom-utils-directory-name"
164
+
163
165
` ` `
164
166
165
167
This configuration file consists of the following settings :
@@ -191,12 +193,7 @@ This configuration file consists of the following settings:
191
193
be posted.
192
194
13. **`collapse_walkthrough_comment`** : Specifies whether to collapse
193
195
walkthrough comments on the review.
194
- 14. **`tools`** : Configurations for the tools used in the review.
195
- - **`ast-grep`**: Configurations for the `ast-grep` tool.
196
- - **`rules_directory`**: The directory name where the custom `ast-grep`
197
- rules are stored.
198
- - **`utils_directory`**: The directory name where the custom `ast-grep`
199
- utils are stored.
196
+
200
197
201
198
Refer :
202
199
[CodeRabbit configuration schema](https://coderabbit.ai/integrations/coderabbit-overrides.json).
0 commit comments