7299_testToMaster #2411

Merged
alexm merged 342 commits from 7299_testToMaster into master 2024-05-07 05:30:42 +00:00
1 changed files with 6 additions and 3 deletions
Showing only changes of commit 1a71be38a3 - Show all commits

View File

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