From fcff49a0958c01b40b09d0813f1f16f18df64bdb 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:08 -0300 Subject: [PATCH] create pr-custom-review.yml (#5253) 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 --- .github/pr-custom-review.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/pr-custom-review.yml diff --git a/.github/pr-custom-review.yml b/.github/pr-custom-review.yml new file mode 100644 index 000000000000..ca425370b905 --- /dev/null +++ b/.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: locks-review +team-leads-team: polkadot-review +action-review-team: ci + +rules: + - name: Runtime files + check_type: changed_files + condition: ^runtime/(kusama|polkadot)/src/[^/]+\.rs$ + all_distinct: + - min_approvals: 1 + teams: + - locks-review + - min_approvals: 1 + teams: + - polkadot-review + + - name: Core developers + check_type: changed_files + condition: + include: .* + exclude: ^runtime/(kusama|polkadot)/src/[^/]+\.rs$ + min_approvals: 2 + teams: + - core-devs + +prevent_review_request: + teams: + - core-devs