commitparser

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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