cleanup(repo): clean up scopes and commit types

This commit is contained in:
victor savkin 2019-12-04 09:44:34 -05:00 committed by Victor Savkin
parent dbd94926bf
commit 59543a3b70

View File

@ -6,7 +6,7 @@ const gitMessage = require('child_process')
.toString()
.trim();
const matchCommit = /(chore|build|feat|fix|refactor|style|docs)\((backend|testing|web|react|angular|nx)\):\s(([a-z0-9:\-\s])+)/g.test(
const matchCommit = /(chore|feat|fix|cleanup|docs)\((angular|bazel|core|docs|nextjs|node|react|storybook|testing|repo|misc)\):\s(([a-z0-9:\-\s])+)/g.test(
gitMessage
);
const matchRelease = /Release/gi.test(gitMessage);
@ -24,9 +24,9 @@ if (exitCode === 0) {
);
console.log('\ntype(scope): subject \n BLANK LINE \n body');
console.log('\n');
console.log('possible types: chore|build|feat|fix|refactor|style|docs');
console.log('possible types: chore|build|feat|fix|cleanup|docs');
console.log(
'possible scopes: backend|testing|web|react|angular|nx (if unsure use "nx")'
'possible scopes: angular|bazel|core|docs|nextjs|node|react|storybook|testing|repo|misc (if unsure use "core")'
);
console.log(
'\nEXAMPLE: \n' +