SonarCloud unable to add decor status on github PR

Hello @Akash_Jaiswal

Thank you for your confirmation. We looked into this internally and understood what the problem is.

  • We don’t support Organization renaming. We should update repository slugs in our database when it happens, but we don’t
  • Thankfully GitHub helps us a bit and handles redirects in this case, but only for public projects.
  • Our UI showing the project bindings (Administration / General Settings / Repository bindings) has a flaw because it shows the project correctly bound even though the repository doesn’t exist on GitHub (we have the old reference, which doesn’t exist anymore)

There are multiple things we will improve here, but I’ll put those details later. Let’s first focus on fixing the issue on your side. I’ve tried this and the easiest is to:

  • Go to Administration / General Settings / Repository bindings on the faulty project
  • Select another repo, whichever
  • Save
  • Select the right repo again
  • Save

This will essentially update the reference of the repo we have in the database, and PR decoration will work again. Could you try and let me know if that solves the issue?

Of course, if you have a lot of repos that would be tedious. There is a way to automate this using our API, let me know first if you can manage this way or not.

Cheers
Antoine

2 Likes