Skip to content

Commit 9796522

Browse files
committed
build: release
1 parent 429a5b8 commit 9796522

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

__tests__/main.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test('skips validation if excludeTitle not matches, but excludeLabels matches',
3636
errorSize: 40,
3737
warningSize: 30,
3838
excludeLabels: ['skip'],
39-
excludeTitle: new RegExp('NO_VALIDATION'),
39+
excludeTitle: new RegExp('NO_VALIDATION')
4040
})
4141
const result = checker.check({
4242
title: 'PR',

dist/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8216,7 +8216,8 @@ class Checker {
82168216
}
82178217
shouldSkip(title, labels) {
82188218
var _a, _b;
8219-
return ((_b = (_a = this.excludeTitle) === null || _a === void 0 ? void 0 : _a.test(title)) !== null && _b !== void 0 ? _b : labels.filter(it => this.excludeLabels.includes(it)).length > 0);
8219+
return (((_b = (_a = this.excludeTitle) === null || _a === void 0 ? void 0 : _a.test(title)) !== null && _b !== void 0 ? _b : false) ||
8220+
labels.filter(it => this.excludeLabels.includes(it)).length > 0);
82208221
}
82218222
static getAdditions(data) {
82228223
return data.map(v => v.additions).reduce((acc, v) => acc + v, 0);

0 commit comments

Comments
 (0)