labels

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 1 Imported by: 0

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

func AutoSelectLabels(title string, availableLabels []string) []string

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

func ExtractCommitType(title string) string

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.

Jump to

Keyboard shortcuts

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