mapper

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncrementNone  = iota
	IncrementPatch = iota
	IncrementMinor = iota
	IncrementMajor = iota
)
View Source
const (
	TypeFeature     = "feat"
	TypeBugFix      = "fix"
	TypeRelease     = "release"
	TypeRefactor    = "refactor"
	TypePerformance = "perf"
	TypeTest        = "test"
	TypeStyle       = "style"
	TypeBuild       = "build"
	TypeChore       = "chore"
	TypeCI          = "ci"
	TypeDocs        = "docs"
	TypeRevert      = "revert"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Increment

type Increment int

func Convert

func Convert(inc string) (Increment, error)

type Mapper

type Mapper map[string]Increment

type Table

type Table struct {
	Mapper
	// contains filtered or unexported fields
}

func NewTable

func NewTable(tm Mapper, defInc Increment) Table

func (Table) Get

func (t Table) Get(typ string) Increment

Get returns the configured increment for the provided commit type. Returns the default increment if no mapping for the input type is found.

Jump to

Keyboard shortcuts

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