Skip to content

Releases: trufflesecurity/go-bitbucket

v1.0.0

10 Apr 18:23
300f820

Choose a tag to compare

Breaking Changes

  • Constructor signatures changed: All client constructors (NewBasicAuth, NewOAuthbearerToken, NewOAuthClientCredentials, etc.) now return (*Client, error) instead of *Client. Callers must handle the error.
  • NewOAuthWithCode and NewOAuthWithRefreshToken now return three values: (*Client, string, error).
  • log.Fatal removed: All log.Fatal calls in constructors have been replaced with returned errors, so the library no longer terminates the calling process on failure.

Fixes

  • Workspace listing migrated from deprecated GET /workspaces to GET /user/workspaces.
  • Workspace response decoding handles the workspace_access envelope from the new endpoint.

Additions

  • Custom CA certificate support via new constructor variants (NewBasicAuthWithCaCert, NewOAuthbearerTokenWithCaCert, etc.).
  • Base URL constructor variants (NewBasicAuthWithBaseUrlStr, NewOAuthbearerTokenWithBaseUrlStr, etc.).
  • PullRequests.List() method added (Gets() kept as backward-compatible alias).
  • PullRequestsMergeStrategy type for merge strategy options.
  • GetPipelineVariable and UpdatePipelineVariable methods.

What's Changed

New Contributors

Full Changelog: https://github.com/trufflesecurity/go-bitbucket/commits/v1.0.0