generate

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	CommitSha         string
	RepoDir           string
	Bump              string
	BaseVersion       *semver.Version
	Prefix            string
	PrereleaseID      string
	MainBranchName    string
	DevelopBranchName string
	Debug             bool
}

Params contains semver generate command parameters.

func LoadParams

func LoadParams() (Params, error)

LoadParams loads semver generate config params.

func (Params) String

func (p Params) String() string

type Result

type Result struct {
	PreviousTag  string
	AncestorTag  string
	SemverTag    string
	IsPrerelease bool
}

Result contains the result of Run().

func Run

func Run() (Result, error)

Run generates a semantic version using the commit sha.

func Tag

func Tag(params Params, gc gitClient) (Result, error)

Tag returns the calculated semantica version.

Jump to

Keyboard shortcuts

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