From fffd94ee88ede117de75fcf56e4e80181e9e0b2d Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Fri, 22 Nov 2019 19:44:33 -0500 Subject: [PATCH] build(nx): fix lint check --- scripts/commit-lint.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/commit-lint.js b/scripts/commit-lint.js index 68bc818d8f3b4..58ed3288e0e21 100755 --- a/scripts/commit-lint.js +++ b/scripts/commit-lint.js @@ -5,10 +5,11 @@ const gitMessage = require('child_process') .execSync('git log -1 --no-merges') .toString() .trim(); + const matchCommit = /(chore|build|feat|fix|refactor|style|docs)\((backend|testing|web|react|angular|nx)\):\s(([a-z0-9:\-\s])+)/g.test( gitMessage ); -const matchRelease = /release/gi.test(gitMessage); +const matchRelease = /Release/gi.test(gitMessage); const exitCode = +!(matchRelease || matchCommit); if (exitCode === 0) {