bump

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRepositoryIsEmpty = errors.New("repository is empty")
	ErrRepositoryIsDirty = errors.New("repository contains uncommitted changes")
)

Functions

func Bump

func Bump(ov *semver.Version, part Part) semver.Version

func It

func It(repo *git.Repository, ref *plumbing.Reference, part Part) (*plumbing.Reference, error)

func VerifyRepo

func VerifyRepo(repo *git.Repository, ref *plumbing.Reference) error

Types

type Part

type Part int
const (
	Major Part
	Minor
	Patch
)

Jump to

Keyboard shortcuts

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