diff --git a/lib/workers/pr/code-owners.ts b/lib/workers/pr/code-owners.ts index b7062a740229de..1f5090e39d28fd 100644 --- a/lib/workers/pr/code-owners.ts +++ b/lib/workers/pr/code-owners.ts @@ -31,7 +31,7 @@ export async function codeOwnersForPr(pr: Pr): Promise { }) .reverse(); - const matchingRule = rules.find((rule) => prFiles.every(rule.match)); + const matchingRule = rules.find((rule) => prFiles?.every(rule.match)); if (!matchingRule) { return []; }