Bug 1779797 - part 5: Only auto-approve l10n bumps if they come from the right branches

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

@ -1,7 +1,13 @@
queue_rules:
- name: default
conditions:
- status-success=complete-pr
- or:
- status-success=complete-pr
- and:
# For more context, see "L10N - Auto Merge" rule down below
- base~=^releases[_/].*
- head~=^automation/sync-strings-\d+
- status-success=complete-push
pull_request_rules:
- name: Resolve conflict
conditions:
@ -30,12 +36,17 @@ pull_request_rules:
- and:
- author=mozilla-l10n-automation-bot
- base=main
- head=import-l10n
- status-success=complete-pr
- and:
- author=github-actions[bot]
- base~=releases[_/].*
# Taskcluster doesn't run when PRs are created by github-actions[bot]
# because it's not considered a collaborator.
- base~=^releases[_/].*
- head~=^automation/sync-strings-\d+
- status-success=complete-push
# Taskcluster only runs on git-push events because github-actions[bot] is not considered
# a collaborator, so pull request events are triggered. That said, github-actions[bot]
# doesn't create the PR on a separate fork (unlike mozilla-l10n-automation-bot). That's
# why git-push events are taken into account
actions:
review:
type: APPROVE

Loading…
Cancel
Save