Skip to main content

getGiteaLatestCommitUrl()

Home > @backstage/integration > getGiteaLatestCommitUrl

Given a URL pointing to a repository branch, returns a URL for latest commit information.

Signature:

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

Parameters

Parameter

Type

Description

config

GiteaIntegrationConfig

The relevant provider config

url

string

A URL pointing to a repository branch

**Returns:**

string

Remarks

Converts from: https://gitea.com/a/b/src/branchname or: https://gitea.com/api/v1/repos/a/b/git/commits/branchname