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
Parameter | Type | Description |
---|---|---|
url | string | A URL pointing to a file |
config | BitbucketIntegrationConfig | The 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