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

logs: log CODEOWNERS files and rules

parent f1e31214
No related branches found
Tags 37.172.0
No related merge requests found
...@@ -36,7 +36,10 @@ export async function codeOwnersForPr(pr: Pr): Promise<string[]> { ...@@ -36,7 +36,10 @@ export async function codeOwnersForPr(pr: Pr): Promise<string[]> {
}; };
}) })
.reverse(); .reverse();
logger.debug(
{ prFiles, rules },
'PR files and rules to match for CODEOWNERS'
);
const matchingRule = rules.find((rule) => prFiles?.every(rule.match)); const matchingRule = rules.find((rule) => prFiles?.every(rule.match));
if (!matchingRule) { if (!matchingRule) {
logger.debug('No matching CODEOWNERS rule found'); logger.debug('No matching CODEOWNERS rule found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment