Skip to main content

buildGerritGitilesArchiveUrl()

Home > @backstage/integration > buildGerritGitilesArchiveUrl

Build a Gerrit Gitiles archive url that targets a specific branch and path

Signature:

function buildGerritGitilesArchiveUrl(config: GerritIntegrationConfig, project: string, branch: string, filePath: string): string;

Parameters

ParameterTypeDescription
configGerritIntegrationConfigA Gerrit provider config.
projectstringThe name of the git project
branchstringThe branch we will target.
filePathstringThe absolute file path.

Returns:

string