6130-commitLint #1792

Merged
pablone merged 31 commits from 6130-commitLint into dev 2024-04-12 11:02:00 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 0db4cd7a12 - Show all commits

View File

@ -13,7 +13,7 @@ function getCurrentBranchName(p = process.cwd()) {
return headContent.trim().split('/')[2];
}
const branchName = '12peterParkersl';
const branchName = getCurrentBranchName();
if (branchName) {
const msgPath = `.git/COMMIT_EDITMSG`;
@ -21,8 +21,7 @@ if (branchName) {
const reference = branchName.match(/^\d+/);
const referenceTag = `refs #${reference}`;
if (!msg.includes(referenceTag) && reference) {
console.log('reference: ', reference);
if (!msg.includes(referenceTag) || reference) {
const splitedMsg = msg.split(':');