You can block pull requests from being merged until their Code Insights reports meet your requirements. You can set these merge checks for all the repositories in a project, or a single repository, and your requirements can be based on whether:
Annotations only block merging if they are on the diff. If they’re somewhere else on a changed file, or on a file that hasn’t changed they won’t block the merge.
To add a Code Insights merge check for all the repositories in a project (requires project admin permissions):
To add a Code Insights merge check for a repository (requires repository admin permissions):
Where is the "report key" found listed in the bolded above? Which report is this referring to? Where does this report get generated?
Reports can be attached using REST API, or you may be using a tool which is prepared to attach reports back to a PR
If using REST API you'll give the report key as a mandatory parameter. If there is a tool which is attaching the report, the tool will most probably (or it's expected to) expose the report key in its report
REST API documentation: https://developer.atlassian.com/server/bitbucket/how-tos/code-insights/
BTW, not all the tools expose the report key in the bottom right
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.