From 548e4584261200c80cfbb5b43b0d7a82fa4b9620 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 8 Oct 2020 11:02:23 +0200 Subject: [PATCH] logs: log CODEOWNERS files and rules --- lib/workers/pr/code-owners.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/workers/pr/code-owners.ts b/lib/workers/pr/code-owners.ts index 4d0f28991a..731c9e4e7b 100644 --- a/lib/workers/pr/code-owners.ts +++ b/lib/workers/pr/code-owners.ts @@ -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'); -- GitLab