Skip to main content

getGiteaArchiveUrl()

Home > @backstage/integration > getGiteaArchiveUrl

Given a URL pointing to a repository/path, returns a URL for archive contents of the repository.

Signature:

function getGiteaArchiveUrl(config: GiteaIntegrationConfig, url: string): string;

Parameters

ParameterTypeDescription
configGiteaIntegrationConfigThe relevant provider config
urlstringA URL pointing to a repository/path

Returns:

string

Remarks

Converts from: https://gitea.com/a/b/src/branchname or: https://gitea.com/api/v1/repos/a/b/archive/branchname.tar.gz