We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb352c commit 485e14bCopy full SHA for 485e14b
commit-lint.js
@@ -1,12 +1,9 @@
1
const chalk = require('chalk')
2
const msgPath = process.env.HUSKY_GIT_PARAMS
3
-console.log('process.env',process.env.HUSKY_GIT_PARAMS)
4
debugger;
5
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
6
7
const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types|build)(\(.+\))?: .{1,50}/
8
-console.log(msg)
9
-console.log('process.env',process.env)
10
if (!commitRE.test(msg)) {
11
console.log()
12
console.error(
0 commit comments