test: refs #null test
This commit is contained in:
parent
85e6f30697
commit
bb52b1bae2
|
@ -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(':');
|
||||
|
||||
|
|
Loading…
Reference in New Issue