Ai
1 Star 2 Fork 0

马树/jsbi-calculator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
commit-msg 467 Bytes
一键复制 编辑 原始数据 按行查看 历史
Leslie Wong 提交于 2021-10-13 21:07 +08:00 . :wrench:chore: add husky commit-msg
#!/usr/bin/env bash
# Validate commit log
commit_regex="^Merge.+|(:tada: feat|:bug: fix|:pencil: docs|:art: style|:hammer: refactor|:racehorse: perf|:cop: test|:construction: build|:rocket: ci|:wrench: chore|:arrow_backward: revert)(\(.+\))?: .{1,50}"
msg=`cat $HUSKY_GIT_PARAMS`
if [[ "$msg" =~ $commit_regex ]]; then
exit 0
else
echo " Please use a valid commit message. "
echo " See commit_regex in commit_msg for more details. "
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/leslie_wong/jsbi-calculator.git
git@gitee.com:leslie_wong/jsbi-calculator.git
leslie_wong
jsbi-calculator
jsbi-calculator
main

搜索帮助