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 2 deletions
Showing only changes of commit fa1e679b48 - Show all commits

View File

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