Merge pull request #17359 from Ma11hewThomas/fix/hotspots-reviewed-link

fix: amend getSecurityHotspotsUrl to conditionally remove project path
This commit is contained in:
Fredrik Adelöw
2023-04-14 10:36:25 +02:00
committed by GitHub
2 changed files with 8 additions and 3 deletions
+3 -3
View File
@@ -127,9 +127,9 @@ export class SonarQubeClient implements SonarQubeApi {
'en-US',
)}&resolved=false&view=list`,
getSecurityHotspotsUrl: () =>
`${baseUrl}project/security_hotspots?id=${encodeURIComponent(
componentKey,
)}`,
`${baseUrl}${
baseUrl === 'https://sonarcloud.io/' ? 'project/' : ''
}security_hotspots?id=${encodeURIComponent(componentKey)}`,
};
}
}