Skip to main content

Module git_commit_message

Module git_commit_message 

Source
Expand description

git_commit_message — assert HEAD’s commit message matches a shape (regex, max subject length, body required).

Use cases: enforce Conventional Commits / Angular-style prefixes, cap the subject at a screen-friendly width (50–72), require commits that fix issues to include a body linking the issue. CI integration: run alint check --changed (or alint check) on every PR; alint reads the tip commit and fires if the shape is off.

Outside a git repo, with no commits yet, or when git isn’t on PATH, the rule silently no-ops. This is the same advisory posture as git_tracked_only and git_no_denied_paths: a rule about git only fires when there’s git to inspect.

Check-only — alint can’t rewrite the user’s commit message, and git commit --amend is a sensitive operation we don’t automate.

Structs§

GitCommitMessageRule

Functions§

build