Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RepositoryFormatRegex = regexp.MustCompile(`^[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+$`)
repository format should be owner/repo
Functions ¶
func DetectRepository ¶
DetectRepository attempts to detect the GitHub repository from .git/config Returns the repository in owner/repo format, or an error if detection fails
func GetGitRepositoryRoot ¶ added in v0.3.0
GetGitRepositoryRoot finds the root directory of the current git repository Returns the absolute path to the repository root, or an error if not in a git repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.