Reputation: 13395
I am trying to add SonarCloud
badge to my README
.
But when I do like this
![https://sonarcloud.io/dashboard?id=com.lapots.breed.judge%3Ajudge-rule-engine](https://sonarcloud.io/api/project_badges/measure?project=com.lapots.breed.judge%3Ajudge-rule-engine&metric=alert_status)
The badge itself looks fine but it does not allow to go to sonarcloud
project and instead leads to camo.githubusercontent.com
.
Which link should I use to access the SonarCloud
project?
Thanks.
Upvotes: 23
Views: 18203
Reputation: 5223
As of today, this option is available at the information tab on the sonarcloud, here is ss for my Open source project MSG
Upvotes: 2
Reputation: 793
In new version of sonarcloud.io You will find badges in overview page by clicking in Information button on left bottom
Upvotes: 28
Reputation: 9220
You can use this link to access SonarCloud project directly:
https://sonarcloud.io/dashboard?id=Project_Key_Here
Alternatively, you could access your SonarCloud badge via following steps:
Upvotes: 31
Reputation: 1947
The markdown syntax for an image with link is
[![<image title>](<image url>)](link url)
So, try:
[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=com.lapots.breed.judge:judge-rule-engine&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.lapots.breed.judge:judge-rule-engine)
Upvotes: 12