feat: refs #12 peter
This commit is contained in:
parent
1a71be38a3
commit
fa1e679b48
|
@ -13,12 +13,12 @@ function getCurrentBranchName(p = process.cwd()) {
|
|||
return headContent.trim().split('/')[2];
|
||||
}
|
||||
|
||||
const branchName = 'peterParkersl';
|
||||
const branchName = '12peterParkersl';
|
||||
|
||||
if (branchName) {
|
||||
const msgPath = `.git/COMMIT_EDITMSG`;
|
||||
const msg = fs.readFileSync(msgPath, 'utf-8');
|
||||
const reference = branchName.match(/^\d+/)[0];
|
||||
const reference = branchName.match(/^\d+/);
|
||||
|
||||
const referenceTag = `refs #${reference}`;
|
||||
if (!msg.includes(referenceTag) && reference) {
|
||||
|
|
Loading…
Reference in New Issue