Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Code Insights not in repository settings after generating custom report via API

Joel Hill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2023

I'm in the process of generating reports for code coverage and code quality and I would like to enable a merge check based on whether or not these reports pass.

I've successfully pushed a mock report through the API and I see the report in the relevant pull request. According to the documentation there should be a "Code Insights" option in the repository settings where I can configure merge checks. The setting does not appear to be there in my case.

My questions are:

  1. Will custom reports generated through the API allow us to use the "Code Insights"? Are "Code Insights" only available through 3rd party integrations?
  2. If what I'm doing should work, what am I doing wrong? Do I need to send specific information when creating or updating a report?

Additional context that may be relevant:

  • The report was not sent from a pipeline script, it was sent from my local environment. I'm using an auth token and sending in the header of the request.
  • We have pipelines configured and running for the pull request I generated the report for.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 2023

Hi Joel,

I think that what you read might have been the documentation of Bitbucket Server / Data Center, as Code Insights merge checks are a feature of Bitbucket Server / Data Center and not of Bitbucket Cloud.

You can use our API to generate and view reports and annotations in pull requests even from your local environment, but we don't have a feature for Code Insights merge checks in Bitbucket Cloud. I can create a feature request about this in our issue tracker for our development team to take into account, please feel free to let me know if you'd like me to proceed with that.

You can see the available merge checks for Bitbucket Cloud if you create a branch restriction (from Repository settings) in the tab Merge settings. These are documented on the following page:

Kind regards,
Theodora

Joel Hill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2023

Thank you for the response, and yes we would absolutely like the code insights merge checks in BitBucket Cloud!

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2023

Hi Joel!

I just found that we have an existing feature request for what you are asking here:

I would suggest adding your vote to that feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here and any updates will be posted in the feature request.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events