Skip to main content

getBitbucketFileFetchUrl()

Home > @backstage/integration > getBitbucketFileFetchUrl

Warning: This API is now obsolete.

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

Given a URL pointing to a file on a provider, returns a URL that is suitable for fetching the contents of the data.

Signature:

function getBitbucketFileFetchUrl(url: string, config: BitbucketIntegrationConfig): string;

Parameters

ParameterTypeDescription
urlstringA URL pointing to a file
configBitbucketIntegrationConfigThe relevant provider config

Returns:

string

Remarks

Converts from: https://bitbucket.org/orgname/reponame/src/master/file.yaml to: https://api.bitbucket.org/2.0/repositories/orgname/reponame/src/master/file.yaml