Replaced justfile with Taskfile.yaml adapted from nasin-pali project.
Updated AGENTS.md to reference task commands instead of just commands.
Assisted-by: Claude Sonnet 4.5 via Crush
Amolith
created
b51a0c8
fix: unwrap and rewrap body text correctly
Click to expand commit body
Previously, formatBody processed each line independently. When input
text was already wrapped (but incorrectly), each line got rewrapped
separately, making the wrapping worse.
Now consecutive plain text lines are collected in a buffer, joined with
spaces to unwrap them, then passed to wordWrap once as a single
paragraph. Blank lines, bullet points, and numbered lists interrupt the
buffer to preserve paragraph boundaries and list formatting.
Fixes: ed58135
Assisted-by: Claude Sonnet 4.5 via Crush
Amolith
created
d72ce68
fix: remove HTML escaping from commit bodies
Click to expand commit body
Commit messages are plaintext piped to 'git commit -F -' stdin,
so
HTML sanitization with bluemonday was unnecessary and harmful. It was
escaping characters like < and > that should remain literal in
commit
text.
Security is maintained through the stdin pipe preventing shell
injection.
Fixes: a6c077f
Assisted-by: Claude Sonnet 4.5 via Crush
Changed flag behavior:
- -a is now shorthand for --add (stage all modified files)
- --amend is now long-form only (no short flag)
Updated documentation in main.go, AGENTS.md, and README.md to reflect
new flag behavior.
Closes: bug-f90a6de
Assisted-by: Claude Sonnet 4.5 via Crush
Amolith
created
a690261
feat(examples): use assisted-by over co-author
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>