committypes

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRegexPatternWithEmoji

func BuildRegexPatternWithEmoji() *regexp.Regexp

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 GetEmojiForType(t string) string

func GuessCommitType added in v0.3.0

func GuessCommitType(message string) string

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

func IsValidCommitType(t string) bool

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.

Jump to

Keyboard shortcuts

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