Skip to content

Commit

Permalink
Bug 1779797 - part 6: Do automatically approve a merge request if any…
Browse files Browse the repository at this point in the history
… other files than L10n ones are changed
  • Loading branch information
JohanLorenzo committed Jul 20, 2022
1 parent 35abbc5 commit 8f01fb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f01fb0

Please sign in to comment.