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/guides/custom-reports.md
+27-15
Original file line number
Diff line number
Diff line change
@@ -105,12 +105,12 @@ Contained within the `<pr_details>` tag.
105
105
106
106
#### Comments
107
107
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.
114
114
115
115
Here's an example prompt that uses these data points:
116
116
@@ -252,17 +252,29 @@ Within each group, sort by:
252
252
- Impact level
253
253
```
254
254
255
-
### Time-Based Analysis
255
+
### Optional Data Sources
256
256
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.
258
258
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:
0 commit comments