Commit 6f36f623 authored by refcell.eth's avatar refcell.eth Committed by GitHub

More Area Label Mergify Rules (#6864)

* Automatically add area labels unless label count >= 5

* Fix regex multi-file rules
parent ab795dfd
...@@ -74,9 +74,17 @@ pull_request_rules: ...@@ -74,9 +74,17 @@ pull_request_rules:
More details can be found on the `Queue: Embarked in merge train` More details can be found on the `Queue: Embarked in merge train`
check-run. check-run.
- name: Add A-cannon label
conditions:
- 'files~=^cannon/'
actions:
label:
add:
- A-cannon
- name: Add A-indexer label and ecopod reviewers - name: Add A-indexer label and ecopod reviewers
conditions: conditions:
- 'files~=^indexer/' - 'files~=^indexer/'
- '#label<5'
actions: actions:
label: label:
add: add:
...@@ -84,47 +92,81 @@ pull_request_rules: ...@@ -84,47 +92,81 @@ pull_request_rules:
request_reviews: request_reviews:
users: users:
- roninjin10 - roninjin10
- name: Add A-pkg-sdk label and ecopod reviewers - name: Add A-op-batcher label
conditions: conditions:
- 'files~=^packages/sdk/' - 'files~=^op-batcher/'
actions: actions:
label: label:
add: add:
- A-pkg-sdk - A-op-batcher
request_reviews: - name: Add A-op-bindings label
users:
- roninjin10
- name: Add A-pkg-common-ts label and ecopod reviewers
conditions: conditions:
- 'files~=^packages/common-ts/' - 'files~=^op-bindings/'
actions: actions:
label: label:
add: add:
- A-pkg-common-ts - A-op-bindings
request_reviews: - name: Add A-op-bootnode label
users:
- roninjin10
- name: Add A-op-node label
conditions: conditions:
- 'files~=^op-node/' - 'files~=^op-bootnode/'
- '#label<5'
actions: actions:
label: label:
add: add:
- A-op-node - A-op-bootnode
- name: Add A-op-batcher label - name: Add A-op-chain-ops label
conditions: conditions:
- 'files~=^op-batcher/' - 'files~=^op-chain-ops/'
actions: actions:
label: label:
add: add:
- A-op-batcher - A-op-chain-ops
- name: Add A-cannon label - name: Add A-op-challenger label
conditions: conditions:
- 'files~=^cannon/' - 'files~=^op-challenger/'
actions: actions:
label: label:
add: add:
- A-cannon - A-op-challenger
- name: Add A-op-e2e label
conditions:
- 'files~=^op-e2e/'
- '#label<5'
actions:
label:
add:
- A-op-e2e
- name: Add A-op-exporter label
conditions:
- 'files~=^op-exporter/'
- '#label<5'
actions:
label:
add:
- A-op-exporter
- name: Add A-op-heartbeat label
conditions:
- 'files~=^op-heartbeat/'
- '#label<5'
actions:
label:
add:
- A-op-heartbeat
- name: Add A-op-node label
conditions:
- 'files~=^op-node/'
actions:
label:
add:
- A-op-node
- name: Add A-op-preimage label
conditions:
- 'files~=^op-preimage/'
- '#label<5'
actions:
label:
add:
- A-op-preimage
- name: Add A-op-program label - name: Add A-op-program label
conditions: conditions:
- 'files~=^op-program/' - 'files~=^op-program/'
...@@ -132,13 +174,75 @@ pull_request_rules: ...@@ -132,13 +174,75 @@ pull_request_rules:
label: label:
add: add:
- A-op-program - A-op-program
- name: Add A-op-challenger label - name: Add A-op-proposer label
conditions: conditions:
- 'files~=^op-challenger/' - 'files~=^op-proposer/'
actions: actions:
label: label:
add: add:
- A-op-challenger - A-op-proposer
- name: Add A-op-service label
conditions:
- 'files~=^op-service/'
- '#label<5'
actions:
label:
add:
- A-op-service
- name: Add A-op-signer label
conditions:
- 'files~=^op-signer/'
- '#label<5'
actions:
label:
add:
- A-op-signer
- name: Add A-op-wheel label
conditions:
- 'files~=^op-wheel/'
- '#label<5'
actions:
label:
add:
- A-op-wheel
- name: Add A-ops-bedrock label
conditions:
- 'files~=^ops-bedrock/'
- '#label<5'
actions:
label:
add:
- A-ops-bedrock
- name: Add A-ops label
conditions:
- 'files~=^ops/'
- '#label<5'
actions:
label:
add:
- A-ops
- name: Add A-pkg-sdk label and ecopod reviewers
conditions:
- 'files~=^packages/sdk/'
- '#label<5'
actions:
label:
add:
- A-pkg-sdk
request_reviews:
users:
- roninjin10
- name: Add A-pkg-common-ts label and ecopod reviewers
conditions:
- 'files~=^packages/common-ts/'
- '#label<5'
actions:
label:
add:
- A-pkg-common-ts
request_reviews:
users:
- roninjin10
- name: Add A-pkg-contracts-bedrock label - name: Add A-pkg-contracts-bedrock label
conditions: conditions:
- 'files~=^packages/contracts-bedrock/' - 'files~=^packages/contracts-bedrock/'
...@@ -148,12 +252,12 @@ pull_request_rules: ...@@ -148,12 +252,12 @@ pull_request_rules:
- A-pkg-contracts-bedrock - A-pkg-contracts-bedrock
- name: Add M-docs label - name: Add M-docs label
conditions: conditions:
- 'files~=^technical-documents/' - 'files~=^(technical-documents|specs)\/'
- 'files~=^specs/' - '#label<5'
actions: actions:
label: label:
add: add:
- A-pkg-contracts-bedrock - M-docs
- name: Add M-deletion label when files are removed - name: Add M-deletion label when files are removed
conditions: conditions:
- 'removed-files~=^/' - 'removed-files~=^/'
...@@ -163,9 +267,8 @@ pull_request_rules: ...@@ -163,9 +267,8 @@ pull_request_rules:
- M-deletion - M-deletion
- name: Add M-ci label when ci files are modified - name: Add M-ci label when ci files are modified
conditions: conditions:
- 'files~=^.github/' - 'files~=^\.(github|circleci|husky)\/'
- 'files~=^.circleci/' - '#label<5'
- 'files~=^.husky/'
actions: actions:
label: label:
add: add:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment