cleanup(repo): clean up scopes and commit types
This commit is contained in:
parent
dbd94926bf
commit
59543a3b70
@ -6,7 +6,7 @@ const gitMessage = require('child_process')
|
|||||||
.toString()
|
.toString()
|
||||||
.trim();
|
.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
|
gitMessage
|
||||||
);
|
);
|
||||||
const matchRelease = /Release/gi.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('\ntype(scope): subject \n BLANK LINE \n body');
|
||||||
console.log('\n');
|
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(
|
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(
|
console.log(
|
||||||
'\nEXAMPLE: \n' +
|
'\nEXAMPLE: \n' +
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user