repoutil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareCommitsPath

func CompareCommitsPath(owner, repo, oldCommitID, newCommitID string) string

CompareCommitsPath returns the comparison path using given owner, repository, and commit IDs.

func HTMLURL

func HTMLURL(owner, repo string) string

HTMLURL returns HTML URL using given owner and repository name.

func HTTPSCloneURL

func HTTPSCloneURL(owner, repo string) string

HTTPSCloneURL returns HTTPS clone URL using given owner and repository name.

func RepositoryLocalPath

func RepositoryLocalPath(repoID int64) string

RepositoryLocalPath returns the absolute path of the repository local copy with the given ID.

func RepositoryLocalWikiPath

func RepositoryLocalWikiPath(repoID int64) string

RepositoryLocalWikiPath returns the absolute path of the repository local wiki copy with the given ID.

func RepositoryPath

func RepositoryPath(owner, repo string) string

RepositoryPath returns the absolute path using given user and repository name.

func UserPath

func UserPath(user string) string

UserPath returns the absolute path for storing user repositories.

Types

type CloneLink struct {
	SSH   string
	HTTPS string
}

CloneLink represents different types of clone URLs of repository.

func NewCloneLink(owner, repo string, isWiki bool) *CloneLink

NewCloneLink returns clone URLs using given owner and repository name.

Jump to

Keyboard shortcuts

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