get_code_insights
Retrieve code insight reports and annotations for a pull request, including build results and code quality analysis.
Instructions
Get code insight reports and their annotations for a pull request. Shows build results, code quality, and other analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID. | |
| fields | No | Comma-separated fields to return (dot notation for nested paths). Omit for a curated default; use '*all' for the full raw API response. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| fileLimit | No | Number of files to fetch annotations for per page. Only used when includeFileAnnotations is true (default: 50, max: 100). | |
| fileStart | No | Page start index for file annotations. Only used when includeFileAnnotations is true (default: 0). | |
| repository | Yes | Repository slug. | |
| includeFileAnnotations | No | Include per-file annotations keyed by file path (default: false). Fetches changed files and retrieves annotations for each. Paginate with fileStart/fileLimit. Adds `fileAnnotations` to the response. |