committed icon indicating copy to clipboard operation
committed copied to clipboard

RFE: option to require non-capitalized subjects

Open scop opened this issue 11 months ago • 4 comments

Requiring commit subjects not to be capitalized is a common practice especially with conventional commit implementations. There does not seem to be a way to enforce this with committed, and it would be nice to have.

Setting subject_capitalized to false does not appear to result in capitalized subjects flagged as an error, it just does not require them to be capitalized then. Perhaps it could be changed to a tri-state option so that if not defined, no particular case is required; if true, capitalization required; if false, non-capitalization required.

Some references

  • https://www.conventionalcommits.org/en/v1.0.0/ (does not require any particular case, but all examples are lowercase)
  • https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional#subject-case
  • https://github.com/angular/angular/blob/main/CONTRIBUTING.md#summary
  • https://www.gitkraken.com/learn/git/best-practices/git-commit-message#quick-git-commit-message-tips

scop avatar Nov 13 '24 19:11 scop