Skip to content

Commit 4682bea

Browse files
wip
1 parent 83ca790 commit 4682bea

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

Diff for: docs/guides/custom-reports.md

+27-15
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ Contained within the `<pr_details>` tag.
105105

106106
#### Comments
107107

108-
- `<pr_comments>`: array of comment objects - Contains all the comments made on the PR.
109-
- `<comment>`: object - Each indidvidual comment is wrapped in this tag and is an object with the following properties:
110-
- `<comment_author_username>`: string - The username of the comment author.
111-
- `<comment_created_at>`: datetime - The date and time the comment was created.
112-
- `<comment_updated_at>`: datetime - The date and time the comment was last updated.
113-
- `<comment_body>`: markdown - The content of the comment.
108+
- `${pr_comments}`: array of comment objects - Contains all the comments made on the PR.
109+
- `${comment}`: object - Each individual comment is wrapped in this tag and is an object with the following properties:
110+
- `${comment_author_username}`: string - The username of the comment author.
111+
- `${comment_created_at}`: datetime - The date and time the comment was created.
112+
- `${comment_updated_at}`: datetime - The date and time the comment was last updated.
113+
- `${comment_body}`: markdown - The content of the comment.
114114

115115
Here's an example prompt that uses these data points:
116116

@@ -252,17 +252,29 @@ Within each group, sort by:
252252
- Impact level
253253
```
254254

255-
### Time-Based Analysis
255+
### Optional Data Sources
256256

257-
Add temporal analysis to your reports:
257+
You can also include optional data sources in your custom reports. By default, CodeRabbit will not include the following data sources. In a custom report you will see the option to include these data sources by clicking the `Select Optional Data Sources` button. This adds special XML tags to your prompt that allow you to include this data in your report.
258258

259-
```text
260-
Provide:
261-
- Week-over-week comparison
262-
- Trend analysis for the past month
263-
- Velocity metrics
264-
- Time to merge statistics
265-
```
259+
#### Bot Comments
260+
261+
Bot comments are comments made by bots and Coderabbit AI on a PR. To enable bot comments you must include the tag `<include_bot_comments>` in your prompt.
262+
263+
These are very similar in structure to regular user comments but with a few key differences:
264+
265+
- `<bot_comments>`: array of comment objects - Contains all the comments made on the PR.
266+
- `<bot_comment>`: object - Each individual comment is wrapped in this tag and is an object with the following properties:
267+
- `<bot_name>`: string - The username of the comment author.
268+
- `<bot_comment_created_at>`: datetime - The date and time the comment was created.
269+
- `<bot_comment_updated_at>`: datetime - The date and time the comment was last updated.
270+
- `<bot_comment_body>`: markdown - The content of the comment.
271+
272+
#### Issues and Tickets
273+
274+
Issues and tickets brings in conversations, descriptions, and comments from Jira and Linear in your repository. To enable issues and tickets you must include the tag `<include_issues_and_tickets>` in your prompt.
275+
276+
- `<issues_and_tickets>`: array of comment objects - Contains all the comments made on the PR.
277+
- `<issue_or_ticket>`: object - Each individual comment is wrapped in this tag and is an object with the following properties:
266278

267279
## Best Practices
268280

0 commit comments

Comments
 (0)