Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeAllowed ¶
TypeAllowed reports whether t is one of the allowed commit types (case-insensitive). Exported so callers that pin a type BEFORE composing a message (gk commit's classifier groups) can validate it up front instead of discovering the type-enum violation after the fact.
Types ¶
type Issue ¶
type Issue struct {
Code string // stable identifier like "type-empty", "type-enum", "subject-max-length"
Message string
}
Issue is a single lint failure.
type Message ¶
type Message struct {
Type string // "feat", "fix", ...
Scope string // inside parens, may be ""
Breaking bool // "!" marker or BREAKING CHANGE footer
Subject string // the one-liner after the colon
Body string // raw body (between subject+blank and footers), may be ""
Raw string // original input
HeaderValid bool // whether the first line parsed cleanly
}
Message is a parsed commit message in Conventional Commits form.