chore: added logging

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-18 11:26:12 +01:00
parent 995ab54b72
commit 8f3dde70c8
@@ -105,8 +105,9 @@ jobs:
codeowners['*'] = ['@backstage/reviewers'];
for (const file of changedFiles) {
const prefixedFile = `/${file.filename}`;
for (const [pattern, owners] of Object.entries(codeowners)) {
console.log(minimatch(`/${file.filename}`, `${pattern}/*`, { matchBase: true }), `/${file.filename}`, `${pattern}/*`)
if (minimatch(`/${file.filename}`, `${pattern}/*`, { matchBase: true })) {
for (const owner of owners) {
reviewers.add(owner);