Skip to content

chore: standardize commit message format with conventional commits#7

Merged
syscod3 merged 1 commit intomainfrom
feature/commit-message-normalizer
Mar 19, 2026
Merged

chore: standardize commit message format with conventional commits#7
syscod3 merged 1 commit intomainfrom
feature/commit-message-normalizer

Conversation

@syscod3
Copy link
Contributor

@syscod3 syscod3 commented Feb 18, 2026

Summary

  • Adds conventional-pre-commit hook to .pre-commit-config.yaml on the commit-msg stage, enforcing Conventional Commits format (type(scope): subject) for all future commits
  • Updates AGENTS.md with commit message guidelines, allowed types, and examples
  • Adds install-hooks Makefile target (pre-commit install --hook-type commit-msg) to document how developers activate the hook after cloning

Test plan

  • Clone a fresh copy and run make install-hooks — verify the commit-msg hook is installed in .git/hooks/
  • Attempt a commit with a non-conforming message (e.g. git commit -m "update stuff") — verify it is rejected
  • Attempt a commit with a conforming message (e.g. git commit -m "chore: update stuff") — verify it succeeds
  • Run pre-commit run --hook-stage commit-msg --commit-msg-filename to validate hook config

🤖 Generated with Claude Code

Adds the conventional-pre-commit hook to .pre-commit-config.yaml on the
commit-msg stage to enforce Conventional Commits format (type(scope): subject).
Updates AGENTS.md with commit message guidelines and examples. Adds
install-hooks Makefile target to document hook setup.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
@syscod3 syscod3 merged commit b76ce8a into main Mar 19, 2026
3 checks passed
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