Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrGitCommandNotFound = 1 ErrGitExec = 2 )
Variables ¶
This section is empty.
Functions ¶
func ResetGitInfo ¶ added in v0.37.7
func ResetGitInfo()
ResetGitInfo resets the git info to nil (for test cleanup)
Types ¶
type Git ¶
func GitInfoFromEnv ¶
func SetGitInfo ¶
func SetGitInfoForTest ¶ added in v0.37.7
SetGitInfoForTest sets git info with custom values for testing purposes
func SetUnknowGitInfo ¶ added in v0.10.2
func SetUnknowGitInfo() *Git
type GitCommand ¶
type GitCommander ¶
type GitCommander struct{}
func (*GitCommander) Branch ¶
func (g *GitCommander) Branch() (*string, error)
func (*GitCommander) Exists ¶
func (g *GitCommander) Exists() bool
func (*GitCommander) PrNumber ¶
func (g *GitCommander) PrNumber() (*string, error)
func (*GitCommander) RemoteURL ¶
func (g *GitCommander) RemoteURL() (*string, error)
func (*GitCommander) Tag ¶
func (g *GitCommander) Tag() (*string, error)
Click to show internal directories.
Click to hide internal directories.