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
Copy file name to clipboardExpand all lines: docs/guides/configure-coderabbit.md
+36-14
Original file line number
Diff line number
Diff line change
@@ -65,11 +65,13 @@ YAML settings:
65
65
(default:`false`).
66
66
- **`path_filters`**: Specifies file patterns to exclude or include for a
67
67
review, such as `!dist/**` and `src/**.tsx`, using glob notation. Example:
68
+
68
69
```yaml
69
70
path_filters:
70
71
- !**/*.xml
71
72
- !**/generated/**
72
73
```
74
+
73
75
- **`path_instructions`**: Provides specific additional guidelines for code
74
76
review based on file paths. In the given example, JavaScript files are
75
77
singled out for checks against the Google JavaScript style guide. File path
@@ -99,11 +101,13 @@ YAML settings:
99
101
(default: `true`).
100
102
- **`base_branches`**: A list of base branches for which the reviews will
101
103
trigger, apart from the default branch. Accepts regex pattern. Example:
102
-
```yaml
103
-
base_branches:
104
-
- "develop"
105
-
- "feat/.*"
106
-
```
104
+
105
+
```yaml
106
+
base_branches:
107
+
- "develop"
108
+
- "feat/.*"
109
+
```
110
+
107
111
- **`tools`**: Configurations for the tools used in the review.
108
112
- **`ast-grep`**: Configurations for the `ast-grep` tool.
109
113
- **`rule_dirs`**: The directory name where the custom `ast-grep` rules
@@ -112,16 +116,34 @@ YAML settings:
112
116
are stored.
113
117
- **`packages`**: A package allows you to share rules across multiple
114
118
projects. Essentially, a package is a collection of `ast-grep` rules.
115
-
Example:
119
+
- **`github-checks`**: Configuration for GitHub Checks integration.
120
+
- **`enabled`**: Enable integration, defaults to true.
121
+
- **`timeout_ms`**: Time in milliseconds to wait for all GitHub Checks to conclude, defaults to 90000 (1.5 minutes), maximum is 300000 (5 minutes), minimum is 0 (no timeout).
122
+
- **`markdownlint`**: Configuration for `markdownlint` integration.
123
+
- **`enabled`**: Enable integration, defaults to true.
124
+
- **`ruff`**: Configuration for `ruff` integration.
125
+
- **`enabled`**: Enable integration, defaults to true.
126
+
- **`shellcheck`**: Configuration for `shellcheck` integration.
127
+
- **`enabled`**: Enable integration, defaults to true.
128
+
116
129
```yaml
117
-
ast-grep:
118
-
rule_dirs:
119
-
- "rules"
120
-
util_dirs:
121
-
- "utils"
122
-
packages:
123
-
- "ast-grep-essentials"
124
-
- "my-awesome-org/my-awesome-package" # public GitHub repository that contains ast-grep rules
130
+
ast-grep:
131
+
rule_dirs:
132
+
- "rules"
133
+
util_dirs:
134
+
- "utils"
135
+
packages:
136
+
- "ast-grep-essentials"
137
+
- "my-awesome-org/my-awesome-package" # public GitHub repository that contains ast-grep rules
138
+
github-checks:
139
+
enabled: true
140
+
timeout_ms: 90000
141
+
markdownlint:
142
+
enabled: true
143
+
ruff:
144
+
enabled: true
145
+
shellcheck:
146
+
enabled: true
125
147
```
126
148
127
149
5. **`chat`**: Defines the behavior of CodeRabbit's bot in conversations.
0 commit comments