versioning

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NextVersionType

type NextVersionType int
const (
	NextVersionTypeUndefined NextVersionType = iota
	NextVersionTypeNormal
	NextVersionTypeRC
	NextVersionTypeBeta
	NextVersionTypeAlpha
)

func (NextVersionType) IsPrerelease

func (n NextVersionType) IsPrerelease() bool

func (NextVersionType) String

func (n NextVersionType) String() string

type Strategy

type Strategy interface {
	NextVersion(git.Releases, VersionBump, NextVersionType) (string, error)
	IsPrerelease(version string) bool
}
var SemVer Strategy = semVer{}

type VersionBump

type VersionBump conventionalcommits.VersionBump
const (
	UnknownVersion VersionBump = iota
	PatchVersion
	MinorVersion
	MajorVersion
)

func BumpFromCommits

func BumpFromCommits(commits []commitparser.AnalyzedCommit) VersionBump

Jump to

Keyboard shortcuts

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