Commit a80d3be6 authored by shangbj's avatar shangbj

update

parent c738610d
......@@ -8,13 +8,15 @@ const gitPath = path.join(process.cwd(), process.env.HUSKY_GIT_PARAMS);
const mergeMsgPath = path.join(gitPath,'../','MERGE_MSG')
function mergeCheck(){
console.log(logSymbols.info, chalk.blue('开始分支检测...'))
const mergeMsg = fs.readFileSync(mergeMsgPath, 'utf-8');
console.log(mergeMsg)
}
function commitMsgCheck(){
console.log(logSymbols.info, chalk.blue('开始commit检测...'))
const commitMsg = fs.readFileSync(gitPath, 'utf-8');
if(!commitMsg) {
if(!commitMsg || commitMsg.indexOf('no message')>=0) {
console.log(logSymbols.error, chalk.red('no message'))
process.exit(1)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment