committype

package
v0.0.0-...-a398c15 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 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 CommitType

type CommitType struct {
	// contains filtered or unexported fields
}

func New

func New(log Logger) *CommitType

func (*CommitType) GetAll

func (c *CommitType) GetAll() []string

func (*CommitType) GetCommitChangeType

func (c *CommitType) GetCommitChangeType(commitMessage string) (string, error)

GetCommitChangeType get the commit type from Message I.e.:

fix(scope?): Commit subject here.

Output: fix

func (*CommitType) GetMajorUpgrade

func (c *CommitType) GetMajorUpgrade() []string

func (*CommitType) GetMinorUpgrade

func (c *CommitType) GetMinorUpgrade() []string

func (*CommitType) GetPatchUpgrade

func (c *CommitType) GetPatchUpgrade() []string

func (*CommitType) GetScope

func (c *CommitType) GetScope(commitMessage string) string

GetScope get the commit scope from Message I.e.:

fix(any): Commit subject here.

Output: any

func (*CommitType) GetSkipVersioning

func (c *CommitType) GetSkipVersioning() []string

func (*CommitType) IndexNotFound

func (c *CommitType) IndexNotFound(index int) bool

type Logger

type Logger interface {
	Info(s string, args ...interface{})
}

Jump to

Keyboard shortcuts

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