ci: fix validate-commit-messages
This commit is contained in:
parent
8dd16bbe67
commit
d3f174a57f
|
@ -14,7 +14,11 @@ module.exports = (gulp) => () => {
|
||||||
|
|
||||||
let someCommitsInvalid = false;
|
let someCommitsInvalid = false;
|
||||||
let commitsByLine = stdout.trim().split(/\n/);
|
let commitsByLine = stdout.trim().split(/\n/);
|
||||||
|
for (var i = 0; i < commitsByLine.length; i++) {
|
||||||
|
if (!commitsByLine[i]) {
|
||||||
|
commitsByLine.splice(i, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
console.log(`Examining ${commitsByLine.length} commits between HEAD and master`);
|
console.log(`Examining ${commitsByLine.length} commits between HEAD and master`);
|
||||||
|
|
||||||
if (commitsByLine.length == 0) {
|
if (commitsByLine.length == 0) {
|
||||||
|
|
Loading…
Reference in New Issue