bumper

package
v0.0.0-...-3a64406 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTags = errors.New("source did not return any tag")

Functions

This section is empty.

Types

type Bumper

type Bumper struct {
	EntryCap      bump.Type
	DependencyCap bump.Type
	// contains filtered or unexported fields
}

Bumper takes a changelog and a version and figures out the next one.

func New

func New(c changelog.Changelog) Bumper

New creates a new bumper.

func (Bumper) Bump

func (b Bumper) Bump(v *semver.Version) (*semver.Version, error)

Bump uses the Bumper's changelog.Changelog to compute the next version from v.

func (Bumper) BumpSource

func (b Bumper) BumpSource(source version.Source) (*semver.Version, error)

BumpSource operates just like Bump, except it extracts tags from the supplied tag.Source and applies the bump on the latest (in semver order) version it finds.

Jump to

Keyboard shortcuts

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