We've had a pipeline running for some time that runs a code review tool and adds annotations to our PRs. It uses REST API extensively to do this. Last week it started failing. At first I thought it was something to do with the changes to auth, but I was getting an auth token. After regenerating my token my new token had more scopes, but still failed.
First hurdle wasn't too bad once I found it, my diffstat url is now coming from the PR info links
But I've got downstream errors yet to resolve. Is there a list of the API changes?
Yes — Bitbucket Cloud has been going through a meaningful auth and API transition that explains what you're seeing.
The developer changelog at developer.atlassian.com/cloud/bitbucket/changelog/ is the canonical list of what's changed — worth bookmarking. What downstream errors are you still hitting?
Hello @Denise Skidmore
Atlassian is fully phasing out app passwords in favor of API tokens, and the legacy merge parameter on diff/diffstat endpoints is being removed for topic=true/false. Hardcoded repository URLs are also no longer reliable compared to following direct API response links.
Check your workflow that nothing still relies on legacy authentication or manually built paths. Also, verify that your Code Insights annotations target the correct commit and report with the updated token scopes.
Cheers,
Arek🤠
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.