generator

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitType

type CommitType string

CommitType represents different types of commits

const (
	Feat     CommitType = "feat"
	Fix      CommitType = "fix"
	Refactor CommitType = "refactor"
	Chore    CommitType = "chore"
	Test     CommitType = "test"
	Docs     CommitType = "docs"
	Style    CommitType = "style"
	Perf     CommitType = "perf"
	CI       CommitType = "ci"
	Build    CommitType = "build"
)

type MessageGenerator

type MessageGenerator struct{}

MessageGenerator generates conventional commit messages

func New

func New() *MessageGenerator

New creates a new MessageGenerator instance

func (*MessageGenerator) GenerateMessage

func (m *MessageGenerator) GenerateMessage(analysis *analyzer.ChangeAnalysis) string

GenerateMessage generates a conventional commit message based on analysis

Jump to

Keyboard shortcuts

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