Skip to content

Commit

Permalink
fix: check prFiles before every
Browse files Browse the repository at this point in the history
Closes #6432
  • Loading branch information
rarkins committed Jun 4, 2020
1 parent 0e21892 commit 33ca9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/pr/code-owners.ts
Expand Up @@ -31,7 +31,7 @@ export async function codeOwnersForPr(pr: Pr): Promise<string[]> {
})
.reverse();

const matchingRule = rules.find((rule) => prFiles.every(rule.match));
const matchingRule = rules.find((rule) => prFiles?.every(rule.match));
if (!matchingRule) {
return [];
}
Expand Down

0 comments on commit 33ca9d9

Please sign in to comment.