commitparser

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegisterCommitParserFn = registerCommitParser
	GetCommitParserFn      = getCommitParser
)

Functions

func Register

func Register()

Register registers the commit parser plugin with the sley plugin system.

func ResetCommitParser

func ResetCommitParser()

Types

type CommitParser

type CommitParser interface {
	Name() string
	Description() string
	Version() string
	Parse(commits []string) (string, error)
}

func NewCommitParser

func NewCommitParser() CommitParser

NewCommitParser returns a new Conventional Commits parser.

type CommitParserPlugin

type CommitParserPlugin struct{}

func (CommitParserPlugin) Description

func (CommitParserPlugin) Description() string

func (CommitParserPlugin) Name

func (CommitParserPlugin) Name() string

func (*CommitParserPlugin) Parse

func (p *CommitParserPlugin) Parse(commits []string) (string, error)

Parse analyzes a slice of commit messages and infers the semver bump type. It returns "major", "minor", "patch", or an error if no inference is possible.

func (CommitParserPlugin) Version

func (CommitParserPlugin) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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