From 7dbdbdeaf3b66c7d30e041094df8c558f8dc0a27 Mon Sep 17 00:00:00 2001
From: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com>
Date: Fri, 15 Nov 2024 17:13:01 +0100
Subject: [PATCH] ci: fix mergify (#350)

* no conv commit message

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* fix mergify rules

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
---
 .mergify.yml => .github/mergify.yml | 3 +++
 1 file changed, 3 insertions(+)
 rename .mergify.yml => .github/mergify.yml (85%)

diff --git a/.mergify.yml b/.github/mergify.yml
similarity index 85%
rename from .mergify.yml
rename to .github/mergify.yml
index b342bbf9..a383a484 100644
--- a/.mergify.yml
+++ b/.github/mergify.yml
@@ -11,5 +11,8 @@ merge_protections:
     description: When test data is updated, we require two reviewers
     if:
       - base = main
+      - or:
+          - files ~= ^tests/data
+          - files ~= ^tests/data_scanned
     success_conditions:
       - "#approved-reviews-by >= 2"