Skip to content

Commit

Permalink
build: release
Browse files Browse the repository at this point in the history
  • Loading branch information
ookami-kb committed Feb 1, 2023
1 parent 429a5b8 commit 9796522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test('skips validation if excludeTitle not matches, but excludeLabels matches',
errorSize: 40,
warningSize: 30,
excludeLabels: ['skip'],
excludeTitle: new RegExp('NO_VALIDATION'),
excludeTitle: new RegExp('NO_VALIDATION')
})
const result = checker.check({
title: 'PR',
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8216,7 +8216,8 @@ class Checker {
}
shouldSkip(title, labels) {
var _a, _b;
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);
return (((_b = (_a = this.excludeTitle) === null || _a === void 0 ? void 0 : _a.test(title)) !== null && _b !== void 0 ? _b : false) ||
labels.filter(it => this.excludeLabels.includes(it)).length > 0);
}
static getAdditions(data) {
return data.map(v => v.additions).reduce((acc, v) => acc + v, 0);
Expand Down

0 comments on commit 9796522

Please sign in to comment.