Documentation
¶
Index ¶
- type CommitType
- func (c *CommitType) GetAll() []string
- func (c *CommitType) GetCommitChangeType(commitMessage string) (string, error)
- func (c *CommitType) GetMajorUpgrade() []string
- func (c *CommitType) GetMinorUpgrade() []string
- func (c *CommitType) GetPatchUpgrade() []string
- func (c *CommitType) GetScope(commitMessage string) string
- func (c *CommitType) GetSkipVersioning() []string
- func (c *CommitType) IndexNotFound(index int) bool
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitType ¶
type CommitType struct {
// contains filtered or unexported fields
}
func New ¶
func New(log Logger) *CommitType
func (*CommitType) GetAll ¶
func (c *CommitType) GetAll() []string
func (*CommitType) GetCommitChangeType ¶
func (c *CommitType) GetCommitChangeType(commitMessage string) (string, error)
GetCommitChangeType get the commit type from Message I.e.:
fix(scope?): Commit subject here.
Output: fix
func (*CommitType) GetMajorUpgrade ¶
func (c *CommitType) GetMajorUpgrade() []string
func (*CommitType) GetMinorUpgrade ¶
func (c *CommitType) GetMinorUpgrade() []string
func (*CommitType) GetPatchUpgrade ¶
func (c *CommitType) GetPatchUpgrade() []string
func (*CommitType) GetScope ¶
func (c *CommitType) GetScope(commitMessage string) string
GetScope get the commit scope from Message I.e.:
fix(any): Commit subject here.
Output: any
func (*CommitType) GetSkipVersioning ¶
func (c *CommitType) GetSkipVersioning() []string
func (*CommitType) IndexNotFound ¶
func (c *CommitType) IndexNotFound(index int) bool
Click to show internal directories.
Click to hide internal directories.