Documentation
¶
Overview ¶
Package commit provides core interfaces for parsed conventional commits. Consumers depend on these interfaces independently of the backing parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiagnosticPosition ¶
DiagnosticPosition returns the 1-based line and column for err in msg when err carries a byte offset, or false otherwise.
func ForEachLine ¶
ForEachLine iterates over lines in s without their LF or CRLF endings. Iteration stops if fn returns false.
Types ¶
type Commit ¶
type Commit interface {
Message() string
Header() string
Body() string
Type() string
Scope() string
Description() string
Notes() []Note
IsBreakingChange() bool
HasHeaderBang() bool
BodyBlankLines() int
NoteCount() int
NoteAt(index int) Note
}
Commit represents a parsed conventional commit message.