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 |
The relevant provider config | |
url |
string |
A URL pointing to a repository branch |
string
Remarks
Converts from: https://gitea.com/a/b/src/branchname or: https://gitea.com/api/v1/repos/a/b/git/commits/branchname