Skip to content

Commit

Permalink
logs: log CODEOWNERS files and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Oct 8, 2020
1 parent f1e3121 commit 548e458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/workers/pr/code-owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export async function codeOwnersForPr(pr: Pr): Promise<string[]> {
};
})
.reverse();

logger.debug(
{ prFiles, rules },
'PR files and rules to match for CODEOWNERS'
);
const matchingRule = rules.find((rule) => prFiles?.every(rule.match));
if (!matchingRule) {
logger.debug('No matching CODEOWNERS rule found');
Expand Down

0 comments on commit 548e458

Please sign in to comment.