Team,
When I invoke GET api/project_branches/list, we are not getting “bugs” , “vulnerabilities” and “codeSmells” in response.
API documentation says we will get the above parameters also. What changes we need to do to get the expected output.
Actual output:
{
"branches": [
{
"name": "main",
"isMain": true,
"type": "LONG",
"status": {
"qualityGateStatus": "OK"
},
"analysisDate": "2021-10-28T15:50:44+0200",
"commit": {
"sha": "289dc4943d2ec5eab4853fb89f974a1506394ebc",
"author": {
"name": "Ravindra Induri"
},
"date": "2021-10-28T15:42:37+0200",
"message": "Update azure-pipelines-3.yml for Azure Pipelines"
}
}
]
}
Expected output:
{
"branches": [
{
"name": "feature/foo2",
"isMain": false,
"type": "SHORT",
"mergeBranch": "master",
"status": {
"qualityGateStatus": "OK",
"bugs": 1,
"vulnerabilities": 0,
"codeSmells": 0
},
"analysisDate": "2017-09-02T13:37:00+0100",
"commit": {
"sha": "P1A5AxmsWdy1WPk0YRk48lVPDuYcy4EgUjtm2oGXt6LKdM6YS9"
}
}
}