model

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 2 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 (
	CommitTypeBuild    CommitType = "build"
	CommitTypeChore    CommitType = "chore"
	CommitTypeCI       CommitType = "ci"
	CommitTypeDocs     CommitType = "docs"
	CommitTypeFeat     CommitType = "feat"
	CommitTypeFix      CommitType = "fix"
	CommitTypePerf     CommitType = "perf"
	CommitTypeRefactor CommitType = "refactor"
	CommitTypeStyle    CommitType = "style"
	CommitTypeTest     CommitType = "test"
)

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