Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info/report-titles #188

Merged
merged 7 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
22 changes: 22 additions & 0 deletions docs/guides/custom-reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ CodeRabbit supports markdown formatting in custom reports. You can use:
- Bold and italic text
- Links

### Headers and Titles

The name you give to each report in the CodeRabbit menu will be used for the first line of any report or the subject for emails. For example if your report is named `Executive Summary Template` then this string will appear on the subject of your emails and start of all message chains.

When using the `Preview Report` button in the CodeRabbit menu, the subject will begin with `Preview: <report name>`.

The reports will also have an overall title describing the report content such as `Pull Request Summary Report (January 2025)`.

To change these details of this overall title you should include specific instructions in your custom prompt with examples such as:

```text
- Do not add a date to the titles like "Pull Request Summary Report (January 2025)" it should just be "Pull Request Summary Report"
```

### Language Support

You can generate reports in multiple languages by specifying the ISO language code in your template. For example:
Expand Down Expand Up @@ -210,10 +224,18 @@ Provide:
- Consider your audience's needs

4. **Optimize Readability**

- Use appropriate formatting
- Include visual breaks
- Maintain consistent styling

5. **Use Examples**
- Include "do this" and "don't do this" examples (especially for titles)
- Demonstrate proper formatting patterns
- Show concrete use cases for different report types
- Help maintain consistency across teams
- Avoid ambiguity in report generation

## Example Templates

### Executive Summary Template
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/scheduled-reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ CodeRabbit offers several built-in templates:
1. **Daily Standup Report**: A concise summary of pull requests and activities.
2. **Sprint Report**: A structured overview of sprint goals, completed tasks, in-progress work, and blockers.
3. **Release Notes**: A high-level changelog with summary and significant changes.
4. **[Custom Templates](./custom-reports.md)**: Create your own format using prompts. Has support for multiple languages.
4. **[Custom Templates](custom-reports.md)**: Create your own format using prompts. Allows for endless customization such as native language reporting (Japanese, Spanish, French, etc.), custom formatting, custom titles, and more.

Example custom prompt:

Expand Down
Loading