Documentation
¶
Overview ¶
Package commitmsg cleans Git commit messages and parses stale-ADR authorization trailers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
Authorization permits one older authored ADR version for the reason recorded.
func ParseAuthorizations ¶
func ParseAuthorizations(msg Message, validVersion func(string) bool) ([]Authorization, error)
ParseAuthorizations parses the final trailer block and validates reserved pairs.
type SyntaxError ¶
SyntaxError identifies malformed reserved authorization syntax by cleaned line.
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
Click to show internal directories.
Click to hide internal directories.