diff --git a/docs/guides/custom-reports.md b/docs/guides/custom-reports.md index c027fa1d..2efbab41 100644 --- a/docs/guides/custom-reports.md +++ b/docs/guides/custom-reports.md @@ -252,17 +252,38 @@ Within each group, sort by: - Impact level ``` -### Time-Based Analysis +### Optional Data Sources -Add temporal analysis to your reports: +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. -```text -Provide: -- Week-over-week comparison -- Trend analysis for the past month -- Velocity metrics -- Time to merge statistics -``` +#### Bot Comments + +Bot comments are comments made by bots and Coderabbit AI on a PR. To enable bot comments you must include the tag `` in your prompt. + +These are very similar in structure to regular user comments but with a few key differences: + +- ``: array of comment objects - Contains all the comments made on the PR. +- ``: object - Each individual comment is wrapped in this tag and is an object with the following properties: + - ``: string - The username of the comment author. + - ``: datetime - The date and time the comment was created. + - ``: datetime - The date and time the comment was last updated. + - ``: markdown - The content of the comment. + +#### Issues and Tickets + +Issues and tickets brings in conversations, descriptions, and comments from Jira and Linear as part of your report if the ticket is linked in your PR description. To enable issues and tickets you must include the tag `` in your prompt. + +- ``: array of issue objects - Contains all the linked issues and tickets. +- ``: object - Each individual issue is wrapped in this tag and is an object with the following properties: + - ``: string - The title or thread ID of the issue. + - ``: string - The URL to the issue. + - ``: string - The unique identifier of the issue. + - ``: string - The username of who created the issue. + - ``: datetime - The date and time the issue was created. + - ``: datetime - The date and time the issue was last updated. + - ``: markdown - The content/description of the issue. This contains the following sections: + - ``: markdown - The description of the issue. + - ``: array of comment objects - Contains all the comments made on the issue. ## Best Practices