I’ve successfully implemented PR Decoration with Circle CI and GitHub:
Screenshot 2019-08-07 at 18.33.56.png
Nevertheless, I am not able to decorate commits on my main branch (master) or other branches. There’s nothing displayed even though everything is analyzed on sonarcloud.io. Unfortunately, I even could not find any information about that in the documentation.
Basicly that’s my code regarding each anlysis (the project stuff is done via properties):
if [ -v CIRCLE_PULL_REQUEST ] && [ "$CIRCLE_BRANCH" != "master" ]; then
./gradlew sonarqube \
-Dsonar.pullrequest.base=master \
-Dsonar.pullrequest.branch="${CIRCLE_BRANCH}" \
-Dsonar.pullrequest.key="${pr_number}"
else
if [ "$CIRCLE_BRANCH" != "master" ]; then
./gradlew sonarqube \
-Dsonar.branch.name="${CIRCLE_BRANCH}"
else
./gradlew sonarqube
fi
fi