Documentation ¶
Index ¶
- Constants
- func Contains(s []string, str string) bool
- func FindBumps(repositoryPath string, branch string) map[string][]*Bump
- func FindModules(startingDirectory string) []string
- func GetTag(moduleRelativePath string, bump *Bump) string
- func GetVersionBumpRegexp() *regexp.Regexp
- func IncrementMajor(version *semver.Version) *semver.Version
- func IncrementMinor(version *semver.Version) *semver.Version
- func IncrementPatch(version *semver.Version) *semver.Version
- func MakeVersion(version string) semver.Version
- func Open(repositoryPath string) *git.Repository
- func Reverse[S ~[]E, E any](s S)
- type Bump
- type Config
- type VersionBumpStrings
Constants ¶
View Source
const BumpPattern = `\b(((\w+\/?)+)__SEPARATOR__(__MAJOR__|__MINOR__|__PATCH__))\b`
View Source
const BumpTypeMajor = "major"
View Source
const BumpTypeMinor = "minor"
View Source
const BumpTypePatch = "patch"
View Source
const BumpTypeSubmatchIndex = 4
View Source
const DefaultVersion = "0.0.0"
View Source
const GoModule = "go.mod"
View Source
const ModuleSubmatchIndex = 2
Variables ¶
This section is empty.
Functions ¶
func FindModules ¶
func GetVersionBumpRegexp ¶
func IncrementMajor ¶
func IncrementMajor(version *semver.Version) *semver.Version
func IncrementMinor ¶
func IncrementMinor(version *semver.Version) *semver.Version
func IncrementPatch ¶
func IncrementPatch(version *semver.Version) *semver.Version
func MakeVersion ¶
func MakeVersion(version string) semver.Version
func Open ¶
func Open(repositoryPath string) *git.Repository
Types ¶
type Config ¶
type Config struct { BumpStrings *VersionBumpStrings `mapstructure:"bumpStrings"` VersionSeparator string `mapstructure:"versionSeparator"` }
type VersionBumpStrings ¶
Click to show internal directories.
Click to hide internal directories.