fix: amend getSecurityHotspotsUrl to conditionally remove project path
Signed-off-by: Matthew Thomas <matthewthomasgb@gmail.com>
This commit is contained in:
@@ -130,9 +130,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)}`,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user