Skip to content

Commit

Permalink
build(nx): fix lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Nov 23, 2019
1 parent f916379 commit fffd94e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/commit-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fffd94e

Please sign in to comment.