nxtv

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTheBranchesMustBeNotEq = fmt.Errorf("the branches must be not equals")
	ErrNoDiffBetweenBranches  = fmt.Errorf("no diff between branches")
	ErrGettingTags            = fmt.Errorf("getting tags")
)

Functions

This section is empty.

Types

type Output

type Output struct {
	Error             string             `json:"error,omitempty" bson:"error"`
	Versions          []string           `json:"versions" bson:"versions"`
	LatestVersion     string             `json:"latestVersion" bson:"latestVersion"`
	RelevantCommitMsg string             `json:"relevantCommitMsg" bson:"relevantCommitMsg"`
	UpgradeType       VersionUpgradeType `json:"upgradeType" bson:"upgradeType"`
	NextVersion       string             `json:"nextVersion" bson:"nextVersion"`
}

func GetNextVersionBasedOnMR

func GetNextVersionBasedOnMR(path, sourceBranch, targetBranch string) (*Output, error)

type VersionUpgradeType

type VersionUpgradeType string
const (
	PatchVersionUpgrade VersionUpgradeType = "patch"
	MinorVersionUpgrade VersionUpgradeType = "minor"
	MajorVersionUpgrade VersionUpgradeType = "major"
)

Jump to

Keyboard shortcuts

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