model

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Type             CommitType
	Scope            string
	Description      string
	IsBreakingChange bool
}

func (Commit) IsValid

func (c Commit) IsValid() bool

func (Commit) String

func (c Commit) String() string

type CommitType

type CommitType string
const (
	CommitTypeFix      CommitType = "fix"
	CommitTypeFeat     CommitType = "feat"
	CommitTypeDocs     CommitType = "docs"
	CommitTypeStyle    CommitType = "style"
	CommitTypeRefactor CommitType = "refactor"
	CommitTypePerf     CommitType = "perf"
	CommitTypeTest     CommitType = "test"
	CommitTypeChore    CommitType = "chore"
)

func (CommitType) String

func (c CommitType) String() string

type ScopeItem added in v1.2.1

type ScopeItem struct {
	ID   string
	Body string
}

func (ScopeItem) Description added in v1.2.1

func (s ScopeItem) Description() string

func (ScopeItem) FilterValue added in v1.2.1

func (s ScopeItem) FilterValue() string

func (ScopeItem) Title added in v1.2.1

func (s ScopeItem) Title() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL