#!/bin/shif ! bun check; thenecho "TypeScript compilation failed. Please fix the errors before committing."exit 1fi#!/bin/sh# 获取 commit-msg 钩子传递的参数,即提交信息文件的路径COMMIT_MSG_FILE="1ドル"# 读取提交信息文件的内容COMMIT_MSG=$(cat "$COMMIT_MSG_FILE")# 检查提交信息格式if ! echo "$COMMIT_MSG" | grep -E '^(feat|chore|fix|docs|ci|style|test|pref): ' > /dev/null; thenecho "ERROR: Commit message does not start with one of the following: feat|chore|fix|docs|ci|style|test|pref"echo "Please ensure your commit message starts with one of these prefixes followed by a colon and a space."exit 1fiexit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。