Skip to content

feat: add commit-msg hook and simplify session-commit#46

Closed
Cragsmann wants to merge 1 commit into
functions-dev:masterfrom
Cragsmann:SRVOCF-950--commit-msg-hook-and-slash-commands
Closed

feat: add commit-msg hook and simplify session-commit#46
Cragsmann wants to merge 1 commit into
functions-dev:masterfrom
Cragsmann:SRVOCF-950--commit-msg-hook-and-slash-commands

Conversation

@Cragsmann

@Cragsmann Cragsmann commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a Husky commit-msg hook that validates conventional commit type prefix, authorship trailer (Co-Authored-By or Signed-off-by), and no em dashes. Merge/fixup/squash commits are exempt.
  • Add Husky pre-commit hook that runs lint (merged from SRVOCF-946).
  • Simplify session-commit slash command: remove progress log and blocker migration steps, add hook failure handling.
  • Remove redundant commit-user slash command.

Test plan

  • Verify valid tandem commit (with Co-Authored-By:) passes the hook
  • Verify valid autonomous commit (with Signed-off-by:) passes the hook
  • Verify commit without authorship trailer is rejected
  • Verify commit without conventional type prefix is rejected
  • Verify commit with em dash is rejected
  • Verify merge commits bypass the hook
  • Run /session-commit and confirm it produces a valid commit

@Cragsmann Cragsmann force-pushed the SRVOCF-950--commit-msg-hook-and-slash-commands branch from 979bfb9 to 3d17dc7 Compare June 24, 2026 07:54
Add Husky pre-commit (lint) and commit-msg hooks. The commit-msg
hook validates conventional commit type prefix, authorship trailer
(Co-Authored-By or Signed-off-by), and rejects em dashes. Merge,
fixup, and squash commits are exempt.

Simplify session-commit: remove progress log and blocker migration
steps, add hook failure handling. Remove redundant commit-user
command.

Co-Authored-By: Claude <noreply@anthropic.com>
@Cragsmann Cragsmann force-pushed the SRVOCF-950--commit-msg-hook-and-slash-commands branch from 3d17dc7 to 7cadd2a Compare June 24, 2026 07:57
@Cragsmann Cragsmann closed this Jun 24, 2026
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