From f0ec4ae941fe99035da4ca2eace4ac650dd53f77 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 16 Apr 2020 23:18:16 +0200 Subject: [PATCH] ci: fix pullapprove incorrectly skipping fw-compiler as owner (#36661) Currently, if changes are made to `compiler-cli/ngcc` and to other compiler-related files, then only the `fw-ngcc` group is requested for review. This is because the `not contains_any_globs` condition will be false for `fw-compiler` and the group will never become active. We fix this by removing the incorrect condition and filtering out ngcc files before checking `contains_any_globs` in the primary fw-compiler condition. PR Close #36661 --- .pullapprove.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.pullapprove.yml b/.pullapprove.yml index 2b3c7601f3..cfebec27fa 100644 --- a/.pullapprove.yml +++ b/.pullapprove.yml @@ -189,7 +189,7 @@ groups: - *can-be-global-approved - *can-be-global-docs-approved - > - contains_any_globs(files, [ + contains_any_globs(files.exclude('packages/compiler-cli/ngcc/**'), [ 'packages/compiler/**', 'packages/examples/compiler/**', 'packages/compiler-cli/**', @@ -198,10 +198,6 @@ groups: 'aio/content/guide/aot-metadata-errors.md', 'aio/content/guide/template-typecheck.md ' ]) - - > - not contains_any_globs(files, [ - 'packages/compiler-cli/ngcc/**' - ]) reviewers: users: - alxhub @@ -217,10 +213,7 @@ groups: conditions: - *can-be-global-approved - *can-be-global-docs-approved - - > - contains_any_globs(files, [ - 'packages/compiler-cli/ngcc/**' - ]) + - files.include('packages/compiler-cli/ngcc/**') reviewers: users: - alxhub