mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
fix(cli): incorrect commit lint
This commit is contained in:
@@ -8,7 +8,7 @@ export function commitLint() {
|
|||||||
const gitParams = process.env.HUSKY_GIT_PARAMS as string;
|
const gitParams = process.env.HUSKY_GIT_PARAMS as string;
|
||||||
const commitMsg = readFileSync(gitParams, 'utf-8').trim();
|
const commitMsg = readFileSync(gitParams, 'utf-8').trim();
|
||||||
|
|
||||||
if (!commitRE.test(commitMsg) || !mergeRE.test(commitMsg)) {
|
if (!commitRE.test(commitMsg) && !mergeRE.test(commitMsg)) {
|
||||||
logger.error(`Error: invalid commit message: "${commitMsg}".
|
logger.error(`Error: invalid commit message: "${commitMsg}".
|
||||||
|
|
||||||
Proper commit message format is required for automated changelog generation.
|
Proper commit message format is required for automated changelog generation.
|
||||||
|
Reference in New Issue
Block a user