-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpr-custom-review.yml
42 lines (38 loc) · 1.17 KB
/
pr-custom-review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 🔒 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:
include: ^runtime\/(kusama|polkadot)\/src\/.+\.rs$
exclude: ^runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$
all_distinct:
- min_approvals: 1
teams:
- locks-review
- min_approvals: 1
teams:
- polkadot-review
- name: Core developers
check_type: changed_files
condition:
include: .*
# excluding files from 'Runtime files' and 'CI files' rules
exclude: ^runtime/(kusama|polkadot)/src/[^/]+\.rs$|^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*
min_approvals: 3
teams:
- core-devs
- name: CI files
check_type: changed_files
condition:
# dictionary files are excluded
include: ^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*
min_approvals: 2
teams:
- ci
- release-engineering
prevent-review-request:
teams:
- core-devs