urlmanager

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloneURL

func GetCloneURL(gitprovider, repoLink, repo, commitID, forkSlug, repoSlug string) (string, error)

GetCloneURL returns repo clone url for given git provider

func GetCommitDiffURL

func GetCommitDiffURL(gitprovider, path, baseCommit, targetCommit, forkSlug string) (string, error)

GetCommitDiffURL returns commit diff url for given git provider

func GetFileDownloadURL added in v0.10.2

func GetFileDownloadURL(gitprovider, commitID, repoSlug, filePath string) (string, error)

GetFileDownloadURL returns download URL for file in repo

func GetPullRequestDiffURL

func GetPullRequestDiffURL(gitprovider, path string, prNumber int) (string, error)

GetPullRequestDiffURL returns PR Diff url for given git provider

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL