Documentation ¶
Index ¶
- func GenerateLink(repo, commit, file string, line int64) string
- func NormalizeBitbucketRepo(repoURL string) (string, error)
- func NormalizeGerritProject(project string) (string, error)
- func NormalizeGithubRepo(repoURL string) (string, error)
- func NormalizeGitlabRepo(repoURL string) (string, error)
- func NormalizeOrgRepoURL(provider provider, repoURL string) (string, error)
- func UpdateLinkLineNumber(ctx context.Context, link string, newLine int64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLink ¶ added in v3.54.0
GenerateLink crafts a link to the specific file from a commit. Supports GitHub, GitLab, Bitbucket, and Azure Repos. If the provider supports hyperlinks to specific lines, the line number will be included.
func NormalizeBitbucketRepo ¶
func NormalizeGerritProject ¶
func NormalizeGithubRepo ¶
func NormalizeGitlabRepo ¶
func NormalizeOrgRepoURL ¶
NormalizeOrgRepoURL attempts to normalize repos for any provider using the example.com/org/repo style. e.g. %s, Gitlab and Bitbucket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.