Skip to content

Commit a247c97

Browse files
info/report-titles (#188)
* update note on custom reports * add note on changing overall title * fix text * add note on examples * 🎨 pnpm run lint:fix [dependabot skip] * add preview note --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d032cad commit a247c97

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/guides/custom-reports.md

+22
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,20 @@ CodeRabbit supports markdown formatting in custom reports. You can use:
133133
- Bold and italic text
134134
- Links
135135

136+
### Headers and Titles
137+
138+
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.
139+
140+
When using the `Preview Report` button in the CodeRabbit menu, the subject will begin with `Preview: <report name>`.
141+
142+
The reports will also have an overall title describing the report content such as `Pull Request Summary Report (January 2025)`.
143+
144+
To change these details of this overall title you should include specific instructions in your custom prompt with examples such as:
145+
146+
```text
147+
- Do not add a date to the titles like "Pull Request Summary Report (January 2025)" it should just be "Pull Request Summary Report"
148+
```
149+
136150
### Language Support
137151

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

212226
4. **Optimize Readability**
227+
213228
- Use appropriate formatting
214229
- Include visual breaks
215230
- Maintain consistent styling
216231

232+
5. **Use Examples**
233+
- Include "do this" and "don't do this" examples (especially for titles)
234+
- Demonstrate proper formatting patterns
235+
- Show concrete use cases for different report types
236+
- Help maintain consistency across teams
237+
- Avoid ambiguity in report generation
238+
217239
## Example Templates
218240

219241
### Executive Summary Template

docs/guides/scheduled-reports.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ CodeRabbit offers several built-in templates:
9797
1. **Daily Standup Report**: A concise summary of pull requests and activities.
9898
2. **Sprint Report**: A structured overview of sprint goals, completed tasks, in-progress work, and blockers.
9999
3. **Release Notes**: A high-level changelog with summary and significant changes.
100-
4. **[Custom Templates](./custom-reports.md)**: Create your own format using prompts. Has support for multiple languages.
100+
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.
101101

102102
Example custom prompt:
103103

0 commit comments

Comments
 (0)