Skip to content

EPMDEDP-16694: fix: Replace deprecated Bitbucket workspaces endpoint with direct HTTP call#66

Merged
SergK merged 1 commit into
mainfrom
fix-bitbucket-workspaces
Apr 16, 2026
Merged

EPMDEDP-16694: fix: Replace deprecated Bitbucket workspaces endpoint with direct HTTP call#66
SergK merged 1 commit into
mainfrom
fix-bitbucket-workspaces

Conversation

@zmotso
Copy link
Copy Markdown
Member

@zmotso zmotso commented Apr 15, 2026

Pull Request

Description

The go-bitbucket library (v0.9.95) still calls the removed /2.0/workspaces endpoint, causing ListUserOrganizations to fail at runtime. Replace it with a direct resty HTTP call to /2.0/user/workspaces and add unit tests covering success, empty, 401/403, 500, and invalid token cases.

Also handle the error return added to bitbucket.NewBasicAuth in v0.9.95.

@zmotso zmotso requested a review from a team as a code owner April 15, 2026 12:39
@zmotso zmotso self-assigned this Apr 15, 2026
…with direct HTTP call

The go-bitbucket library (v0.9.95) still calls the removed /2.0/workspaces
endpoint, causing ListUserOrganizations to fail at runtime. Replace it with
a direct resty HTTP call to /2.0/user/workspaces and add unit tests covering
success, empty, 401/403, 500, and invalid token cases.

Also handle the error return added to bitbucket.NewBasicAuth in v0.9.95.
@zmotso zmotso force-pushed the fix-bitbucket-workspaces branch from 2dc0cc3 to 36f8a23 Compare April 15, 2026 12:50
@SergK SergK merged commit 8143294 into main Apr 16, 2026
2 checks passed
@SergK SergK deleted the fix-bitbucket-workspaces branch April 16, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants