From 0bf96567b7d06ca05d172e31adccd66e0258c6d2 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Thu, 16 Oct 2025 16:30:02 -0500 Subject: [PATCH] fix a gap in the file-matching of the gitops tool so that the swr checks only fire on PRs that have content --- .github/policies/resourceManagement.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index c65e138b268..5be99393da7 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -159,6 +159,11 @@ configuration: action: Opened - isAction: action: Reopened + # empty PRs will match the swr pattern below (because the implementation doesn't consider the 'empty files list' case) + # so we force _any_ file to exist before continuing the condition checks + - filesMatchPattern: + pattern: ".*" + matchAny: true - or: - filesMatchPattern: pattern: ^.+\.swr$