Versions in this module Expand all Collapse all v0 v0.0.1 Feb 2, 2023 Changes in this version + func CalcNextVer(list []Commit, fromVersion *semver.Version) (*semver.Version, map[string][]*Commit) + func GitPushFollowTags(ctx context.Context) error + func GitTagVersion(ctx context.Context, ver *semver.Version, skipCommit bool, skipTag bool, ...) error + func GitUpAll(ctx context.Context) error + func IsCleanWorkingDir() (bool, error) + func LastVersion() (ver *semver.Version, tag string, err error) + func ReadOrTouchChangeLogFile() (*os.File, error) + func Truncate(v interface{}) error + func UpdateChangeLog(file interface{ ... }, nextVer *semver.Version, fromVersion *semver.Version, ...) error + type Commit struct + Author struct{ ... } + Committer struct{ ... } + Hash string + func ListCommit(from string) ([]Commit, error) + func ResolveVersionAndCommits() (*semver.Version, []Commit, error) + type CommitMsg conventionalcommit.CommitMsg + func (v *CommitMsg) UnmarshalText(data []byte) error + func (v CommitMsg) MarshalText() ([]byte, error) + type VersionAction struct + func NewVersionAction(ctx context.Context, opt VersionOpt) *VersionAction + func (a *VersionAction) Do() error + type VersionOpt struct + PostVersion func(version string) error + Prerelease string + SkipCommit bool + SkipPull bool + SkipPush bool + SkipTag bool + VersionFile string