Bug 1779797 - part 6: Do automatically approve a merge request if any other files than L10n ones are changed

pull/543/head
Johan Lorenzo 2 years ago
parent 35abbc56a3
commit 8f01fb0473

@ -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

Loading…
Cancel
Save