forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'paritytech:master' into master
- Loading branch information
Showing
553 changed files
with
12,424 additions
and
47,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
rules: | ||
- name: CI files | ||
condition: | ||
include: | ||
- ^\.gitlab-ci\.yml | ||
- ^docker/.* | ||
- ^\.github/.* | ||
- ^\.gitlab/.* | ||
- ^\.config/nextest.toml | ||
- ^\.cargo/.* | ||
exclude: | ||
- ^./gitlab/pipeline/zombienet.* | ||
min_approvals: 2 | ||
type: basic | ||
teams: | ||
- ci | ||
- release-engineering | ||
|
||
- name: Audit rules | ||
type: basic | ||
condition: | ||
include: | ||
- ^polkadot/runtime\/(kusama|polkadot|common)\/.* | ||
- ^polkadot/primitives/src\/.+\.rs$ | ||
- ^substrate/primitives/.* | ||
- ^substrate/frame/.* | ||
exclude: | ||
- ^polkadot/runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$ | ||
- ^substrate\/frame\/.+\.md$ | ||
min_approvals: 1 | ||
allowedToSkipRule: | ||
teams: | ||
- core-devs | ||
teams: | ||
- srlabs | ||
|
||
- name: Core developers | ||
countAuthor: true | ||
condition: | ||
include: | ||
- .* | ||
# excluding files from 'Runtime files' and 'CI files' rules | ||
exclude: | ||
- ^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/runtimes/assets/(asset-hub-kusama|asset-hub-polkadot)/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/runtimes/bridge-hubs/(bridge-hub-kusama|bridge-hub-polkadot)/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/runtimes/collectives/collectives-polkadot/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/common/src/[^/]+\.rs$ | ||
- ^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*)) | ||
- ^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$ | ||
- ^\.gitlab-ci\.yml | ||
- ^docker/.* | ||
- ^\.github/.* | ||
- ^\.gitlab/.* | ||
- ^\.config/nextest.toml | ||
- ^\.cargo/.* | ||
min_approvals: 2 | ||
type: basic | ||
teams: | ||
- core-devs | ||
|
||
# cumulus | ||
- name: Runtime files cumulus | ||
countAuthor: true | ||
condition: | ||
include: | ||
- ^cumulus/parachains/runtimes/assets/(asset-hub-kusama|asset-hub-polkadot)/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/runtimes/bridge-hubs/(bridge-hub-kusama|bridge-hub-polkadot)/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/runtimes/collectives/collectives-polkadot/src/[^/]+\.rs$ | ||
- ^cumulus/parachains/common/src/[^/]+\.rs$ | ||
type: and-distinct | ||
reviewers: | ||
- min_approvals: 1 | ||
teams: | ||
- locks-review | ||
- min_approvals: 1 | ||
teams: | ||
- polkadot-review | ||
|
||
# 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/.* | ||
min_approvals: 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: | ||
- min_approvals: 2 | ||
teams: | ||
- core-devs | ||
- min_approvals: 1 | ||
teams: | ||
- frame-coders | ||
|
||
# Protection of THIS file | ||
- name: Review Bot | ||
condition: | ||
include: | ||
- review-bot\.yml | ||
min_approvals: 2 | ||
type: "and" | ||
reviewers: | ||
- min_approvals: 1 | ||
teams: | ||
- opstooling | ||
- min_approvals: 1 | ||
teams: | ||
- locks-review | ||
- min_approvals: 1 | ||
teams: | ||
- ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Review PR | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- review_requested | ||
- review_request_removed | ||
- ready_for_review | ||
pull_request_review: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
review-approvals: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: team_token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.REVIEW_APP_ID }} | ||
private_key: ${{ secrets.REVIEW_APP_KEY }} | ||
- name: "Evaluates PR reviews and assigns reviewers" | ||
uses: paritytech/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
team-token: ${{ steps.team_token.outputs.token }} | ||
checks-token: ${{ steps.team_token.outputs.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.