From 8f01fb047304d1d272e77c6a7300e6c7df785fd4 Mon Sep 17 00:00:00 2001 From: Johan Lorenzo Date: Tue, 19 Jul 2022 15:24:35 +0200 Subject: [PATCH] Bug 1779797 - part 6: Do automatically approve a merge request if any other files than L10n ones are changed --- .mergify.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.mergify.yml b/.mergify.yml index a8d883115a..c66a7870a1 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -31,7 +31,11 @@ pull_request_rules: - name: L10N - Auto Merge conditions: - and: - - files~=(strings.xml|l10n.toml) + - files~=^(l10n.toml|app/src/main/res/values[A-Za-z-]*/strings\.xml)$ + # /!\ The line above doesn't prevent random files to be changed alongside + # l10n ones. That's why the additional condition exists below. For more + # information: https://docs.mergify.com/conditions/#how-to-match-lists + - -files~=^(?!(l10n.toml|app/src/main/res/values[A-Za-z-]*/strings\.xml)).+$ - or: - and: - author=mozilla-l10n-automation-bot