commitparser

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitParser

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

CommitParser defines the interface for parsing a list of commit messages and determining the corresponding semver bump type.

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