I have administrator rights for the organization.
And I still don’t see the menu to change main branch on the screen.
Even if I use the API to change it, it still doesn’t work.
I use API as:
curl --location 'https://sonarcloud.io/api/project_branches/list?project={project_id}&name=develop' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxx'
and I received error message.
{
"errors": [
{
"msg": "Project doesn't exist"
}
]
}
But when I try again with the get branch API, the banch is still displayed as usual.
Can someone share with me how to change the main branch without deleting the old branch?
Thanks!