test: refs #null test

This commit is contained in:
Alex Moreno 2024-04-12 13:21:37 +02:00
parent 85e6f30697
commit bb52b1bae2
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
const fs = require('fs');
const path = require('path');
const path = require('path');
function getCurrentBranchName(p = process.cwd()) {
if (!fs.existsSync(p)) return false;
@ -21,6 +21,7 @@ if (branchName) {
const reference = branchName.match(/^\d+/);
const referenceTag = `refs #${reference}`;
console.log('reference: ', reference);
if (!msg.includes(referenceTag) || reference) {
const splitedMsg = msg.split(':');