Versions in this module Expand all Collapse all v0 v0.5.3 Mar 1, 2023 Changes in this version + func DetectReleaseCommit(commit string, merge bool) (vPrefix string, major, minor, patch int) + type Backend interface + CloseMergeRequest func() error + MainBranch func() (string, error) + MergeRequest func(target, title, description, labels string) error + Release func(tag, ref, changelog string) error + type CommitType string + const TypeChore + const TypeDocs + const TypeFeat + const TypeFix + const TypeOps + const TypeOther + const TypePerf + const TypeRefactor + const TypeSecurity + const TypeTest + func ParseCommitMessage(msg string) (CommitType, string, string, bool) + type Github struct + func NewGithubBackend(token, repo string) Github + func (github Github) CloseMergeRequest() error + func (github Github) MainBranch() (string, error) + func (github Github) MergeRequest(target, title, description, labels string) error + func (github Github) Name() string + func (github Github) Release(tag, ref, changelog string) error + func (github Github) SetAuth(r *http.Request) + func (github Github) String() string + type Gitlab struct + func NewGitlabBackend(token, server, repo string) Gitlab + func (gitlab Gitlab) CloseMergeRequest() error + func (gitlab Gitlab) MainBranch() (string, error) + func (gitlab Gitlab) MergeRequest(target, title, description, labels string) error + func (gitlab Gitlab) Name() string + func (gitlab Gitlab) Release(tag, ref, changelog string) error + func (gitlab Gitlab) SetAuth(r *http.Request) + func (gitlab Gitlab) String() string + type Repository struct + Breaking bool + Details []string + Features []string + Latest string + Major int + Minor int + Patch int + VPrefix string + func ReadRepository(repo *git.Repository, createMajor bool) (*Repository, error) + func (repository *Repository) Changelog() string + func (repository *Repository) Release(backend Backend) error + func (repository *Repository) Version() string