mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
833478f262
- Remove the old Cumulus checks as these files do not exist anymore - Relax requirements on CI files to also give two core devs the right to change these files - Relax requirements on the review bot configuration itself as well.
102 lines
2.3 KiB
YAML
102 lines
2.3 KiB
YAML
rules:
|
|
- name: CI files
|
|
countAuthor: true
|
|
condition:
|
|
include:
|
|
- ^\.gitlab-ci\.yml
|
|
- ^docker/.*
|
|
- ^\.github/.*
|
|
- ^\.gitlab/.*
|
|
- ^\.config/nextest.toml
|
|
- ^\.cargo/.*
|
|
exclude:
|
|
- ^\.gitlab/pipeline/zombienet.*
|
|
type: "or"
|
|
reviewers:
|
|
- minApprovals: 2
|
|
teams:
|
|
- ci
|
|
- minApprovals: 2
|
|
teams:
|
|
- core-devs
|
|
|
|
- name: Audit rules
|
|
type: basic
|
|
condition:
|
|
include:
|
|
- ^polkadot/runtime/common/.*
|
|
- ^polkadot/primitives/src\/.+\.rs$
|
|
- ^substrate/primitives/.*
|
|
- ^substrate/frame/.*
|
|
exclude:
|
|
- ^substrate\/frame\/.+\.md$
|
|
minApprovals: 1
|
|
allowedToSkipRule:
|
|
teams:
|
|
- core-devs
|
|
teams:
|
|
- srlabs
|
|
|
|
- name: Core developers
|
|
countAuthor: true
|
|
condition:
|
|
include:
|
|
- .*
|
|
# excluding files from 'Runtime files' and 'CI files' rules
|
|
exclude:
|
|
- ^cumulus/parachains/common/src/[^/]+\.rs$
|
|
- ^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))
|
|
- ^\.gitlab-ci\.yml
|
|
- ^docker/.*
|
|
- ^\.github/.*
|
|
- ^\.gitlab/.*
|
|
- ^\.config/nextest.toml
|
|
- ^\.cargo/.*
|
|
minApprovals: 2
|
|
type: basic
|
|
teams:
|
|
- core-devs
|
|
|
|
# if there are any changes in the bridges subtree (in case of backport changes back to bridges repo)
|
|
- name: Bridges subtree files
|
|
type: basic
|
|
condition:
|
|
include:
|
|
- ^bridges/.*
|
|
minApprovals: 1
|
|
teams:
|
|
- bridges-core
|
|
|
|
# substrate
|
|
- name: FRAME coders substrate
|
|
condition:
|
|
include:
|
|
- ^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))
|
|
type: "and"
|
|
reviewers:
|
|
- minApprovals: 2
|
|
teams:
|
|
- core-devs
|
|
- minApprovals: 1
|
|
teams:
|
|
- frame-coders
|
|
|
|
# Protection of THIS file
|
|
- name: Review Bot
|
|
countAuthor: true
|
|
condition:
|
|
include:
|
|
- review-bot\.yml
|
|
type: "and"
|
|
reviewers:
|
|
- minApprovals: 1
|
|
teams:
|
|
- opstooling
|
|
- minApprovals: 1
|
|
teams:
|
|
- locks-review
|
|
|
|
preventReviewRequests:
|
|
teams:
|
|
- core-devs
|