const validateTypeNums = (parsedCommit) => { const mergePrefix = "Merge pull request" if (parsedCommit.raw.startsWith(mergePrefix)) { console.log('this is a merge commit:' + parsedCommit.raw) return [true,''] } if (!parsedCommit.type) { return [false, 'invalid commit message, should be like "name: descriptions.", yours: "' + parsedCommit.raw + '"'] } const types = parsedCommit.type.split(' ') for (var i=0;i