committypes

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRegexPatternWithEmoji

func BuildRegexPatternWithEmoji() *regexp.Regexp

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

func GetEmojiForType(t string) string

GetEmojiForType returns the emoji associated with the given commit type, if any.

func GuessCommitType added in v0.3.0

func GuessCommitType(message string) string

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

func IsValidCommitType(t string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL