From 95544bab2d25478134bd316d4024323507b7e21f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Silva=20de=20Souza?=
 <77391175+joao-paulo-parity@users.noreply.github.com>
Date: Thu, 7 Apr 2022 11:23:23 -0300
Subject: [PATCH] create .github/pr-custom-review.yml (#1142)

syntax in accordance to https://github.com/paritytech/pr-custom-review/tree/5814820aa0e5d35412f31dc02f9d130a8b138cae#configuration-syntax

rules in accordance to https://github.com/paritytech/pr-custom-review/blob/da1d81b9fd39705cc8b37f59235283801c818708/rules.md
---
 cumulus/.github/pr-custom-review.yml | 29 ++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 cumulus/.github/pr-custom-review.yml

diff --git a/cumulus/.github/pr-custom-review.yml b/cumulus/.github/pr-custom-review.yml
new file mode 100644
index 00000000000..3c0867de2f8
--- /dev/null
+++ b/cumulus/.github/pr-custom-review.yml
@@ -0,0 +1,29 @@
+# 🔒 PROTECTED: Changes to locks-review-team should be approved by the current locks-review-team
+locks-review-team: cumulus-locks-review
+team-leads-team: polkadot-review
+action-review-team: ci
+
+rules:
+  - name: Runtime files
+    check_type: changed_files
+    condition: ^polkadot-parachains/(statemine|statemint)/src/[^/]+\.rs$
+    all_distinct:
+      - min_approvals: 1
+        teams:
+          - cumulus-locks-review
+      - min_approvals: 1
+        teams:
+          - polkadot-review
+
+  - name: Core developers
+    check_type: changed_files
+    condition:
+      include: .*
+      exclude: ^polkadot-parachains/(statemine|statemint)/src/[^/]+\.rs$
+    min_approvals: 2
+    teams:
+      - core-devs
+
+prevent_review_request:
+  teams:
+    - core-devs
-- 
GitLab