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

Parameter

Type

Description

config

GiteaIntegrationConfig

The relevant provider config

url

string

A 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