Skip to content

feat(subject): make uppercase description check configurable#66

Merged
benner merged 2 commits into
mainfrom
feat/configurable-subject-case-trailing-chars
May 1, 2026
Merged

feat(subject): make uppercase description check configurable#66
benner merged 2 commits into
mainfrom
feat/configurable-subject-case-trailing-chars

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented May 1, 2026

  • feat(subject): make trailing-char check configurable
  • feat(subject): make uppercase description check configurable

Some projects legitimately allow uppercase descriptions. Add
--no-require-lowercase CLI flag and require-lowercase config key
(default: true) to opt out of the check without disabling the
entire subject check.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage

Coverage Report (Δ -1.1%)
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py363698%218, 354, 356, 362, 364, 641
TOTAL363698% 

The trailing period was hardcoded. Replace it with a configurable set
of forbidden trailing characters (no-trailing-chars, default ['.']),
supporting any char including space. An empty set disables the check.
Add --no-trailing-chars CLI flag, no-trailing-chars config key, and the
corresponding action input.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review May 1, 2026 04:39
@benner benner merged commit 51c448c into main May 1, 2026
4 checks passed
@benner benner deleted the feat/configurable-subject-case-trailing-chars branch May 1, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant