I renamed my GitHub organisation, how can I rebind?

So I renamed our GitHub organisation, the link in the Administration page says “This organization is bound”, but the binding is to the old GitHub name. How can I mend this? Creating a new org is the obvious solution, but I am afraid I will loose all project history that way. How can I bind my SonarCloud org to the new GitHub org name?

2 Likes

Hi Per,

Welcome to our community :slight_smile:

If you just want to change the name of your SonarCloud organization to match the one on GitHub side, you can do it in in the Administration > Organization Settings, and then change the name under “Name”. It’s currently manual but in the future we’d like to make that automatic :slight_smile:

Hope it helps

Thank you for this, I have renamed the org in SonarCloud, but the link to the GitHub organisation is still wrong. I have a strong suspicion this will cause me issues in the future.

Indeed, the link is not updated automatically, and this will be part of our future improvements.
Please do come back to us if you see issues.

Thanks,

Hi Per,

I am having the same problem. Did you manged to solve the problem? Or did you had to create a new organization?

I am having the same problem. Did you manged to solve the problem? Or did you had to create a new organization?

Hi Hugo, I resolved it by recreating the organisation. It has been a while though so do not fully remember if there was anything else to it.

Best of luck.

Hey Per. Tks!

Hey Aurélie,

Do you have any update related to the GitHub integration when we change the name of Github Organization?

I have the same question. Recently I renamed our GitHub organization, and the organization configuration section still points to the old GitHub organization (which no longer exists).


When I click “See on GitHub”, I’m taken to the old GitHub org.

Some of our teams complained that after the GitHub organization rename the automatic code analysis no longer works.

How can I rebind my SonarCloud organization to my new GitHub organization?? The UI doesn’t seem to provide me with such an option.

The OLD GitHub organization name: onegini
The NEW GitHub organization name: onewelcome

Hello @steinwelberg,

What you can do, is to go to Github.com → Installed Apps → and uninstall SonarCloud App. This will make your organization unbound in the Sonarcloud. That go to the Sonarcloud.io and bind you organization with the new name. Let me know if you have any questions

Best,
Marcin

1 Like

Thanks! This did the trick. Initially, I received an error. But refreshing the page fixed it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.