tag

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 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 Tag

type Tag struct {
	Path          string         // Path contains the git repository path
	VersionFilter version.Filter // VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest.
	Message       string         // Message associated to the git Tag
	// contains filtered or unexported fields
}

Tag contains git tag information

func (*Tag) Condition

func (t *Tag) Condition(source string) (bool, error)

Condition checks that a git tag exists

func (*Tag) ConditionFromSCM

func (t *Tag) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)

ConditionFromSCM test if a tag exist from a git repository specific from SCM

func (*Tag) Source

func (t *Tag) Source(workingDir string) (string, error)

Source return the latest git tag based on create time

func (*Tag) Target

func (t *Tag) Target(source string, dryRun bool) (changed bool, err error)

Target create a tag if needed from a local git repository, without pushing the tag

func (*Tag) TargetFromSCM

func (t *Tag) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (changed bool, files []string, message string, err error)

TargetFromSCM create and push a git tag based on the SCM configuration

func (*Tag) Validate

func (t *Tag) Validate() error

Validate tests that tag struct is correctly configured

Jump to

Keyboard shortcuts

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