From 995ab54b72f5b5e4f8052b50bf3a665680c18a16 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 18 Jan 2022 11:23:56 +0100 Subject: [PATCH] chore: think the match should be right now Signed-off-by: blam --- .github/workflows/goalie-on-pr-review-or-response.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goalie-on-pr-review-or-response.yaml b/.github/workflows/goalie-on-pr-review-or-response.yaml index f309d008ac..a9e7652c24 100644 --- a/.github/workflows/goalie-on-pr-review-or-response.yaml +++ b/.github/workflows/goalie-on-pr-review-or-response.yaml @@ -102,12 +102,12 @@ jobs: const reviewers = new Set(); // The default catch all is not added to the codeowners response - codeowners['*'] = '@backstage/reviewers'; + codeowners['*'] = ['@backstage/reviewers']; for (const file of changedFiles) { + const prefixedFile = `/${file.filename}`; for (const [pattern, owners] of Object.entries(codeowners)) { - - if (minimatch(`/${file.filename}`, pattern)) { + if (minimatch(`/${file.filename}`, `${pattern}/*`, { matchBase: true })) { for (const owner of owners) { reviewers.add(owner); }