gitversion

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripModuleTagPrefixes added in v0.0.3

func StripModuleTagPrefixes(tag string) string

stripModuleTagPrefixes returns the last component of a path. This is used to resolve the tag format used in pulumi repos of "module/versionComponents" to a simple versionComponents.

Types

type LanguageVersions

type LanguageVersions struct {
	SemVer     string
	Python     string
	JavaScript string
	DotNet     string
}

LanguageVersions contains a generic semantic version and Python-specific version number.

func GetLanguageOptionsFromVersion added in v0.0.37

func GetLanguageOptionsFromVersion(version string) (*LanguageVersions, error)

func GetLanguageVersions

func GetLanguageVersions(repo *git.Repository, commitish plumbing.Revision, omitCommitHash bool,
	releasePrefix string, isPrerelease bool) (*LanguageVersions, error)

See GetLanguageVersionsWithOptions.

func GetLanguageVersionsWithOptions added in v0.0.31

func GetLanguageVersionsWithOptions(opts LanguageVersionsOptions) (*LanguageVersions, error)

GetLanguageVersionsWithOptions calculates the generic and Python-specific version numbers for the given `commitish` based on the most recent tag, the status of the work tree with respect to dirty files, and a timestamp.

type LanguageVersionsOptions added in v0.0.31

type LanguageVersionsOptions struct {
	Repo           *git.Repository
	Commitish      plumbing.Revision
	OmitCommitHash bool
	ReleasePrefix  string
	IsPreRelease   bool
	TagFilter      func(string) bool
}

Jump to

Keyboard shortcuts

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