bump

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidBumpType = errors.New("invalid bump type")

Functions

func New

func New(gh Gh) *bumper

Types

type BumpType added in v0.6.0

type BumpType string
const (
	Major BumpType = "major"
	Minor BumpType = "minor"
	Patch BumpType = "patch"
	Blank BumpType = ""
)

func ParseBumpType added in v0.6.0

func ParseBumpType(s string) (BumpType, error)

func (BumpType) IsBlank added in v0.6.0

func (b BumpType) IsBlank() bool

func (BumpType) String added in v0.6.0

func (b BumpType) String() string

func (BumpType) Valid added in v0.6.0

func (b BumpType) Valid() error

type Gh

type Gh interface {
	ViewRepository() (sout, eout *bytes.Buffer, err error)
	ListRelease(repo string, isCurrent bool) (sout, eout *bytes.Buffer, err error)
	ViewRelease(repo string, isCurrent bool) (sout, eout *bytes.Buffer, err error)
	CreateRelease(version string, repo string, isCurrent bool, option *ReleaseOption) (sout, eout *bytes.Buffer, err error)
}

type ReleaseOption

type ReleaseOption struct {
	IsDraft            bool
	IsPrerelease       bool
	DiscussionCategory string
	GenerateNotes      bool
	Notes              string
	NotesFilename      string
	Target             string
	Title              string
}

Jump to

Keyboard shortcuts

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