Skip to main content
Version: Next

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

Parameter

Type

Description

url

string

A URL pointing to a path

config

BitbucketIntegrationConfig

The relevant provider config

**Returns:**

Promise<string>