No code or issue found in pull request decorations (github + circleci)

Hello,

We are using Pull requests decorations on github and checks are always OK even if I create critical issue in the new code.

Seems like the new code is even not detected by sonar. The code tab is empty in the pull request tab.

I can’t find any clue in the logs.

Any idea ?

1 Like

Hi,

Circleci used to have a bug checking out the project with git, messing up the local reference to master: Code is empty on Pull Request reviews

I’m not sure if it’s still the case, but could you try to do the following in your build script, before launching the analysis?

git branch --force master origin/master
4 Likes

woot thanks it works fine with :slight_smile:

git branch --force master origin/master