nextversion

package
v0.0.0-...-ea07d1b Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: EUPL-1.2 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRepositoryRequired = errors.New("repository is required")
	ErrRevIsAlreadyTagged = errors.New("selected revision already has a tag")
)

Functions

func DetermineNextVersion

func DetermineNextVersion(v *semver.Version, classification classifier.Classification) semver.Version

Types

type NextVersion

type NextVersion struct {
	Logger           *slog.Logger
	Repository       *git.Repository
	Revision         plumbing.Revision
	Prerelease       []string
	Metadata         []string
	Writer           io.Writer
	CommitClassifier *classifier.Classifier
	VSuffix          bool
}

func (*NextVersion) ComputeNextVersion

func (nv *NextVersion) ComputeNextVersion(ctx context.Context, tags map[plumbing.Hash]semver.Version) (*semver.Version, error)

func (*NextVersion) Run

func (nv *NextVersion) Run(ctx context.Context) error

func (*NextVersion) Validate

func (nv *NextVersion) Validate() error

Jump to

Keyboard shortcuts

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