Skip to content

Commit

Permalink
use micromatch.some
Browse files Browse the repository at this point in the history
  • Loading branch information
devnook committed Apr 14, 2022
1 parent 66bcb7e commit 90a2924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion approvals/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module.exports = (app) => {
}

for (const check of config.pr_checks.approvals) {
const isCheckRequired = micromatch(paths, check.paths, {'dot': true}).length > 0;
const isCheckRequired = micromatch.some(paths, check.paths, {'dot': true});
if (isCheckRequired) {
const isApproved = approvers.some(login => check.users.includes(login));
if (!isApproved) {
Expand Down

0 comments on commit 90a2924

Please sign in to comment.