Documentation ¶
Index ¶
- func DetectReleaseCommit(commit string, merge bool) (vPrefix string, major, minor, patch int)
- type Backend
- type CommitType
- type 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitType ¶
type CommitType string
const ( TypeFix CommitType = "fix" TypeFeat CommitType = "feat" TypeTest CommitType = "test" TypeChore CommitType = "chore" TypeOps CommitType = "ops" TypeDocs CommitType = "docs" TypePerf CommitType = "perf" TypeRefactor CommitType = "refactor" TypeSecurity CommitType = "security" TypeOther CommitType = "other" )
func ParseCommitMessage ¶
func ParseCommitMessage(msg string) (CommitType, string, string, bool)
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func NewGithubBackend ¶
func (Github) CloseMergeRequest ¶
func (Github) MainBranch ¶
func (Github) MergeRequest ¶
type Gitlab ¶
type Gitlab struct {
// contains filtered or unexported fields
}
func NewGitlabBackend ¶
func (Gitlab) CloseMergeRequest ¶
func (Gitlab) MainBranch ¶
func (Gitlab) MergeRequest ¶
type Repository ¶
type Repository struct {
Major, Minor, Patch int
VPrefix string
Latest string
Features []string
Breaking bool
Details []string
// contains filtered or unexported fields
}
func ReadRepository ¶
func ReadRepository(repo *git.Repository, createMajor bool) (*Repository, error)
func (*Repository) Changelog ¶
func (repository *Repository) Changelog() string
func (*Repository) Release ¶
func (repository *Repository) Release(backend Backend) error
func (*Repository) Version ¶
func (repository *Repository) Version() string
Click to show internal directories.
Click to hide internal directories.