Files
dify-docs-archived/lang-check/git-tcommit.sh
T
AllenWriter 121ad3b008 feat/git tcommit (#511)
* Feat: add husky and test

* Feat: add husky and test md file

* Feat: add husky and test md file

* Feat: add husky and test md file and test it

* Feat: add husky and test md file and test it

* Feat: update git commit -t parameters

* Feat: delete husky

* Feat: remove action's auto delation

* Feat: update action file

* Feat: delete test md file
2025-02-14 15:27:49 +08:00

11 lines
222 B
Bash
Executable File

#!/bin/bash
# 运行语言检查脚本
if bash ./lang-check/git-diff.sh; then
# 检查通过,执行提交
git commit -m "$*"
else
# 检查失败
echo "Language check failed, commit aborted"
exit 1
fi