Skip to main content
Version: Next

parseHarnessUrl()

Home > @backstage/integration > parseHarnessUrl

Return parsed git url properties.

Signature:

function parseHarnessUrl(config: HarnessIntegrationConfig, url: string): {
baseUrl: string;
accountId: string;
orgName: string;
projectName: string;
refString: string;
repoName: string;
path: string;
refDashStr: string;
branch: string;
};

Parameters

Parameter

Type

Description

config

HarnessIntegrationConfig

A Harness provider config

url

string

A URL pointing to a repository

**Returns:**

{ baseUrl: string; accountId: string; orgName: string; projectName: string; refString: string; repoName: string; path: string; refDashStr: string; branch: string; }