Skip to main content
Version: Next

getBitbucketCloudDefaultBranch()

Home > @backstage/integration > getBitbucketCloudDefaultBranch

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

Signature:

function getBitbucketCloudDefaultBranch(url: string, config: BitbucketCloudIntegrationConfig): Promise<string>;

Parameters

Parameter

Type

Description

url

string

A URL pointing to a path

config

BitbucketCloudIntegrationConfig

The relevant provider config

**Returns:**

Promise<string>