6faf1b5
feat: require BREAKING CHANGE footer with -B flag
Click to expand commit body
When the -B flag is used to mark a commit as a breaking change, the tool
now validates that the body contains a BREAKING CHANGE: or BREAKING
CHANGES: footer. If not present, it returns a descriptive error
instructing users to document breaking change details in this footer.
Implements: bug-e75a648
Co-authored-by: Crush <crush@charm.land>
Add upgrade subcommand to check for and apply updates to the
formatted-commit binary via go install. Includes TUI confirm, spinner,
and non-TTY fallback.
Update README and CLI help with upgrade instructions. Refresh module
dependencies to support the new command.
Co-authored-by: Crush <crush@charm.land>
Add comprehensive trailer validation following git's trailer
specification. Each trailer is validated for proper key:value format
with no whitespace allowed before or inside the key. Multiline values
are supported using RFC 822 folding with continuation lines
requiring whitespace indentation. Trailers are now properly assembled
into a block at the end of commit messages separated by blank lines.
Implements: bug-896472f
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
775175c
feat: implement body sanitisation and formatting
29fbff3
feat: add subject validation and length checking
Click to expand commit body
Add buildAndValidateSubject function to construct commit subjects in
conventional commit format and validate they don't exceed 50 characters.
Truncated subjects show exceeding portion with ellipsis in error output.
Implements: bug-5b35298
Co-authored-by: Crush <crush@charm.land>