Documentation
¶
Index ¶
- 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
- type CommitMsg
- type VersionAction
- type VersionOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcNextVer ¶
func GitPushFollowTags ¶ added in v1.5.0
func GitTagVersion ¶
func IsCleanWorkingDir ¶
Types ¶
type Commit ¶
type Commit struct { Hash string `yaml:"hash"` Author struct { Name string `yaml:"name,omitempty"` Email string `yaml:"email,omitempty"` AuthoredAt time.Time `yaml:"authoredAt,omitempty"` } `yaml:"author,omitempty"` Committer struct { Name string `yaml:"name,omitempty"` Email string `yaml:"email,omitempty"` CommittedAt time.Time `yaml:"committedAt,omitempty"` } `yaml:"committer,omitempty"` *CommitMsg `yaml:"msg,omitempty"` }
func ListCommit ¶
type CommitMsg ¶
type CommitMsg conventionalcommit.CommitMsg
func (CommitMsg) MarshalText ¶
func (*CommitMsg) UnmarshalText ¶
type VersionAction ¶ added in v1.5.0
type VersionAction struct {
// contains filtered or unexported fields
}
func NewVersionAction ¶ added in v1.5.0
func NewVersionAction(ctx context.Context, opt VersionOpt) *VersionAction
func (*VersionAction) Do ¶ added in v1.5.0
func (a *VersionAction) Do() error
Click to show internal directories.
Click to hide internal directories.