Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRegexPatternWithEmoji ¶
BuildRegexPatternWithEmoji constructs a dynamic regex pattern using the list of commit types. e.g.: ^((\p{So}|\p{Sk}|:\w+:)\s*)?(feat|fix|docs):
func GetAllTypes ¶ added in v0.4.0
func GetAllTypes() []string
OPTIONAL: Provide a helper to return all commit types as []string for TUI menus, etc.
func GetEmojiForType ¶ added in v0.4.0
GetEmojiForType returns the emoji associated with the given commit type, if any.
func GuessCommitType ¶ added in v0.3.0
GuessCommitType attempts to guess a commit type by checking if the AI-generated message contains any known type in commitTypeList.
func InitCommitTypes ¶ added in v0.4.0
func InitCommitTypes(cfgTypes []config.CommitTypeConfig)
InitCommitTypes now accepts []config.CommitTypeConfig directly
func IsValidCommitType ¶
IsValidCommitType returns true if the given commit type is in our list.
func TypesRegexPattern ¶
func TypesRegexPattern() string
TypesRegexPattern returns a regex pattern that matches any configured commit type.
Types ¶
This section is empty.