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

ParameterTypeDescription
configGiteaIntegrationConfigThe relevant provider config
urlstringA 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