SonarCloud webhook sending invalid pull request url

Using SonarCloud webhook, the current url under the branch section is broken for pull requests and leads nowhere. They are fine when it covers information for main branches.

What used to be: https://sonarcloud.io/dashboard?id=some_id&pullRequest=pull_request_number
has now changed to: https://sonarcloud.io/dashboard?id=some_id&pullRequest=pr_branch_name
the latter does not work.

Additionally, links under: https://sonarcloud.io/project/branches?id=some_id are also broken in the current view though they work in the beta version of the site.

Hoping to get a fix on this soon, so that devs can use the tool more effectively!

2 Likes

Yes got the same issue in here.

Hoping to get a fix very soon, since our developers relied on the reporting that based on those generated URL.

1 Like

This recent change from Sonarcloud has left all our chat notification links broken for PR sonar checks. Bcoz, we rely on the “Branch.url” sent in Sonar webhook payload. And that url sent from sonarcloud is broken.

Hi,

Thanks for reporting the webhook issue. We will look at it.

@geojakes could you please add screenshots for the second issue, related to links broken in the old UI, to help us locate the exact issue?

HTH,
Claire

@Claire_Villard can’t really share the problem here since its a UI issue that can’t be shown in an image, but the problem boils down going to the link here: https://sonarcloud.io/project/branches?id=<project_id> .
This takes me to the branches and pull requests page where when I click most PRs shown under master, they just divert me back to the overview page of the project, ie https://sonarcloud.io/dashboard?id=<project_id>

Thanks for the explanation, I was able to reproduce the behavior. We will also have a look at that problem.

Hi y’all,

We have deployed a fix for the webhooks. Could you please test again and confirm if it works fine now?

About the broken links on the UI, you can watch the progress on that ticket https://jira.sonarsource.com/browse/SCCOMM-57

2 Likes

Thanks Claire. Verified on our end the fix is working. Thanks for your prompt help.

1 Like

Thank you. It looks like the webhooks are good now.

1 Like

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