Documentation
¶
Overview ¶
Package labels provides automatic label selection based on conventional commit types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoSelectLabels ¶
AutoSelectLabels selects labels automatically based on the commit title's conventional commit type. It returns the original label names from availableLabels that match the commit type's candidates (case-insensitive). Returns nil if no matches are found.
func ExtractCommitType ¶
ExtractCommitType parses the conventional commit type from a title. Supports "type(scope): msg" and "type: msg" formats. Returns "" if the title doesn't follow conventional commit format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.