card-game.el/test
Corwin Brust ee02437e3d Add a commit-msg hook for this project's attribution form
card-games is published, so its commit messages are permanent public
record.  The new hook refuses a session-link trailer and a
Co-Authored-By trailer naming Claude or anthropic.com, and checks that
any Assisted-by trailer reads NAME (for PERSON; MODEL).  A message with
no Assisted-by line passes: attribution stays the author's call.

* hooks/commit-msg: New hook.
* hooks/applypatch-msg: New hook; runs commit-msg for git am.
* test/commit-msg-tests.el: New ERT tests that drive the sh hook.
* Makefile (GITHOOKS): New variable.
(hooks): Install all three hooks.
(test-hooks): New target.
(check): Run it.

Assisted-by: Mentat (for Corwin; claude-opus-5-5)
2026-10-05 19:45:04 -05:00
..
card-games-tests.el Stop the AI from sorting hands in place; unskip full-game tests 2026-10-05 19:45:04 -05:00
commit-msg-tests.el Add a commit-msg hook for this project's attribution form 2026-10-05 19:45:04 -05:00