Skip to main content
Version: Next

getBitbucketServerDefaultBranch()

Home > @backstage/integration > getBitbucketServerDefaultBranch

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

Signature:

function getBitbucketServerDefaultBranch(url: string, config: BitbucketServerIntegrationConfig): Promise<string>;

Parameters

Parameter

Type

Description

url

string

A URL pointing to a path

config

BitbucketServerIntegrationConfig

The relevant provider config

**Returns:**

Promise<string>