Skip to main content

getBitbucketDefaultBranch()

Home > @backstage/integration > getBitbucketDefaultBranch

Warning: This API is now obsolete.

no longer in use, bitbucket integration replaced by integrations bitbucketCloud and bitbucketServer.

Given a URL pointing to a path on a provider, returns the default branch.

Signature:

function getBitbucketDefaultBranch(url: string, config: BitbucketIntegrationConfig): Promise<string>;

Parameters

ParameterTypeDescription
urlstringA URL pointing to a path
configBitbucketIntegrationConfigThe relevant provider config

Returns:

Promise<string>