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
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

📝 Path-based instructions for docstring generation#296

Merged
NatoBoram merged 1 commit intomainfromfeature/docstrings-path-instructions
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletionsdocs/changelog.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,26 @@ description: The latest updates and changes to CodeRabbit.
sidebar_position: 13
---

## April 19, 2025

### Docstring Path Instructions

You can now provide path-based instructions for the generation of docstring in `.coderabbit.yaml`.

Example:

```yaml
code_generation:
docstrings:
path_instructions:
- path: "**/*.ts"
instructions: |
End all docstrings with a notice that says "Auto-generated by CodeRabbit.".
Do not omit the closing tags; the docstring must be valid.
```

See the [docstrings documentation](/finishing-touches/docstrings#path-instructions) for more details.

## April 14, 2025

### Shopify CLI Integration & Bitbucket Cloud Reporting
Expand Down
14 changes: 14 additions & 0 deletionsdocs/finishing-touches/docstrings.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,6 +33,20 @@ CodeRabbit cannot perform further modifications to opened pull requests. From th

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).

## Path Instructions

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.

```yaml
code_generation:
docstrings:
path_instructions:
- path: "**/*.ts"
instructions: |
End all docstrings with a notice that says "Auto-generated by CodeRabbit.".
Do not omit the closing tags; the docstring must be valid.
```

## Supported software forges

These software forges are supported:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp