7253-devToTest_2418 #2350
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue