cyberneticlibrary

Generate git commit messages

func-commit-messagecommandsetup L1360
knative/func
What it does

Draft git commit message following conventional commits

Best for

Commit message generation: analyzes staged changes and drafts a message following conventional commit format, seven rules, and imperative mood.

Inputs
  • · staged changes
Outputs
  • · proposed commit message
Requires
  • · git diff
  • · git log
Preconditions
  • · staged changes exist
  • · git repo initialized
Failure modes
  • · no staged changes
  • · unclear what changed
Trust signals
  • · enforces 50-char subject limit
  • · references type+scope format
  • · body explains what/why vs how
  • · shows message before committing