Skip to main content
Version: Next

parseGiteaUrl()

Home > @backstage/integration > parseGiteaUrl

Return parsed git url properties.

Signature:

function parseGiteaUrl(config: GiteaIntegrationConfig, url: string): {
url: string;
owner: string;
name: string;
ref: string;
path: string;
};

Parameters

Parameter

Type

Description

config

GiteaIntegrationConfig

A Gitea provider config

url

string

A URL pointing to a repository

**Returns:**

{ url: string; owner: string; name: string; ref: string; path: string; }