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

Parameter

Type

Description

config

GiteaIntegrationConfig

The relevant provider config

url

string

A 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