From 6a27ef1f037386c32a11fa2d28893272ddd39be9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 06:49:00 +0000 Subject: [PATCH 1/2] Initial plan From 5da31b836fad4cb0c2d1af1f6c93907efcba8385 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 06:53:34 +0000 Subject: [PATCH 2/2] fix: reject commit subjects ending with a trailing period Co-authored-by: tannn <831788+tannn@users.noreply.github.com> --- git-hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg index db002aa..f0c2fea 100755 --- a/git-hooks/commit-msg +++ b/git-hooks/commit-msg @@ -14,7 +14,7 @@ COMMIT_MSG_FILE="$1" COMMIT_MSG=$(head -1 "$COMMIT_MSG_FILE") TYPES="feat|fix|docs|chore|refactor|test|style|perf|ci" -PATTERN="^(${TYPES})(\([a-z0-9]([a-z0-9-]*[a-z0-9])?\))?!?: [a-z].{1,}" +PATTERN="^(${TYPES})(\([a-z0-9]([a-z0-9-]*[a-z0-9])?\))?!?: [a-z]([^.]|.*[^.])?$" error() { printf '\n[commit-msg] ERROR: %s\n\n' "$*" >&2