Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRegexPatternWithEmoji ¶
BuildRegexPatternWithEmoji matches optional emoji, a valid type, optional scope, and colon.
func GetAllTypes ¶ added in v0.4.0
func GetAllTypes() []string
func GetEmojiForType ¶ added in v0.4.0
func GuessCommitType ¶ added in v0.3.0
GuessCommitType tries to pick the most likely type from the message's first line. It uses word-boundary matching to avoid "fix" in "prefix" false-positives.
func InitCommitTypes ¶ added in v0.4.0
func InitCommitTypes(cfgTypes []config.CommitTypeConfig)
InitCommitTypes resets the known commit type list.
func IsValidCommitType ¶
IsValidCommitType returns true if t is in the configured list.
func TypesRegexPattern ¶
func TypesRegexPattern() string
TypesRegexPattern builds a safe alternation for all configured types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.