Skip to content

Commit 526353a

Browse files
chore(ZMS): validate only the commit subject line to prevent bypasses
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent cf1794a commit 526353a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GREEN='\033[0;32m'
55
NC='\033[0m' # No Color
66

77
commit_msg_file="$1"
8-
commit_msg=$(cat "$commit_msg_file")
8+
commit_msg=$(head -n 1 "$commit_msg_file")
99

1010
valid_types="feat|fix|clean|chore|docs"
1111
valid_projects="ZMS|ZMSKVR|MPDZBS|MUXDBS"

0 commit comments

Comments
 (0)