Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitHubProjectForOrigin ¶
GetGitHubProjectForOrigin returns the GitHub login, and GitHub repo name if the "origin" remote is a GitHub URL.
func GetGitHubProjectForOriginByRepo ¶
func GetGitHubProjectForOriginByRepo(repo *git.Repository) (string, string, error)
GetGitHubProjectForOriginByRepo returns the GitHub login, and GitHub repo name if the "origin" remote is a GitHub URL.
func GetGitRepository ¶
func GetGitRepository(dir string) (*git.Repository, error)
GetGitRepository returns the git repository by walking up from the provided directory. If no repository is found, will return (nil, nil).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.