From d54a688ba9e199b33c4c06e4063bf87e08ab4cbb Mon Sep 17 00:00:00 2001
From: Christos Tsolakis <christos.tsolakis@kitware.com>
Date: Fri, 22 Sep 2023 12:53:56 -0400
Subject: [PATCH] ci: Fix code_change rule.

The rule to detect code changes introduced in vtk/vtk!10427 was faulty and
didn't detect changes in subdirectories.  The new rules include all files under
the appropriate directories recursively.

Co-Authored-By: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
---
 .gitlab/rules.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitlab/rules.yml b/.gitlab/rules.yml
index c5bb306cd43..32077b3acaf 100644
--- a/.gitlab/rules.yml
+++ b/.gitlab/rules.yml
@@ -1,11 +1,13 @@
 # Rules for where jobs can run
 
 .run_on_code_change:
+  # The following rules are intended to include all files and directories
+  # expect the `Documentation` directory.
   rules:
       changes: &code_change
-        - '[a-zA-CE-Z]*' # any path starting with anything but 'D'
-        - 'Domains/*'    # any path under Domains directory is touched
-        - '.*'           # any hidden file is touched
+        - '[a-zA-CE-Z]*/**/*' # any path starting with anything but 'D'
+        - 'Domains/*/**/*'    # any path under Domains directory is touched
+        - '.*'                # any hidden file is touched
       when: on_success
 
 
-- 
GitLab