Skip to main content

getGiteaEditContentsUrl()

Home > @backstage/integration > getGiteaEditContentsUrl

Given a URL pointing to a file, returns a URL for editing the contents of the data.

Signature:

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

Parameters

ParameterTypeDescription
configGiteaIntegrationConfigThe relevant provider config
urlstringA URL pointing to a file

Returns:

string

Remarks

Converts from: https://gitea.com/a/b/src/branchname/path/to/c.yaml or: https://gitea.com/a/b/\_edit/branchname/path/to/c.yaml