Hope you’re fine. I’ve a little question relating to the SonarQube(version 6.7) API and more especially the method project_status.
I use the API and this method to get the status of the quality gate of the project. It was working perfectly until the activation of the branch plugin, I’ve the wrong information. According to the documentation of the method, there is no ‘branch’ parameters.
My question is the following, how can I get the status of quality gate for a specific branch in a project?
Browser inspector is a good way to see how the UI behaves under the hood (pro-tip: UI consumes WebAPI). Apparently api/project_branches/list can help !
the api documentation seems to not be updated but you can with the following URI : /api/measures/component?component={componentKey}&metricKeys=alert_status&branch={branchName}