Skip to content
Snippets Groups Projects
Commit 33ca9d9a authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: check prFiles before every

Closes #6432
parent 0e218922
Branches
No related tags found
No related merge requests found
......@@ -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 [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment