Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

create .github/pr-custom-review.yml #5253

Merged
merged 1 commit into from
Apr 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/pr-custom-review.yml
Original file line number Diff line number Diff line change
@@ -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:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkchr to make the review work like you suggest in paritytech/pr-custom-review#81 (comment) for this rule, change this line

Suggested change
all_distinct:
all:

It would not affect 🔒 lines however

- 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