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/finishing-touches/docstrings.md
+14
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,20 @@ CodeRabbit cannot perform further modifications to opened pull requests. From th
33
33
34
34
This feature has been rigorously tested and is now available for all Pro plan users. Additionally, you can provide feedback about this feature on [Discord](https://discord.com/channels/1134356397673414807/1317286905557287022).
35
35
36
+
## Path Instructions
37
+
38
+
You can customize the generated docstrings by providing instructions based on file paths in your `.coderabbit.yaml`. The `path` is a [minimatch](https://github.com/isaacs/minimatch) pattern.
39
+
40
+
```yaml
41
+
code_generation:
42
+
docstrings:
43
+
path_instructions:
44
+
- path: "**/*.ts"
45
+
instructions: |
46
+
End all docstrings with a notice that says "Auto-generated by CodeRabbit.".
47
+
Do not omit the closing tags; the docstring must be valid.
0 commit comments