Commit 92d62ef1 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Update Mergify, fix labeler (#2401)

- Requires all threads to be resolved
- Adds/removes a `conflict` label when there are merge conflicts/when they are cleared.
- Adds a comment and removes the `on-merge-train` label when a queued merge fails.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 31300f7f
...@@ -37,7 +37,4 @@ M-ops: ...@@ -37,7 +37,4 @@ M-ops:
- any: ['ops/**/*'] - any: ['ops/**/*']
C-Protocol-Critical: C-Protocol-Critical:
- any: - any: ['packages/data-transport-layer/**/*.ts', 'packages/contracts/**/*.sol', 'l2geth/**/*.go']
- 'packages/data-transport-layer/**/*.ts'
- 'packages/contracts/**/*.sol'
- 'l2geth/**/*.go'
\ No newline at end of file
...@@ -5,18 +5,19 @@ queue_rules: ...@@ -5,18 +5,19 @@ queue_rules:
pull_request_rules: pull_request_rules:
- name: Automatic merge on approval - name: Automatic merge on approval
conditions: conditions:
- and:
- "#review-threads-unresolved=0"
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- or: - or:
- and: - and:
- "label!=SR-Risk" - "label!=SR-Risk"
- "label!=C-Protocol-Critical" - "label!=C-Protocol-Critical"
- "#approved-reviews-by>=2"
- and: - and:
- "label=SR-Risk" - "label=SR-Risk"
- "#approved-reviews-by>=2"
- "approved-reviews-by=maurelian" - "approved-reviews-by=maurelian"
- and: - and:
- "label=C-Protocol-Critical" - "label=C-Protocol-Critical"
- "#approved-reviews-by>=2"
- or: - or:
- "approved-reviews-by=tynes" - "approved-reviews-by=tynes"
- "approved-reviews-by=smartcontracts" - "approved-reviews-by=smartcontracts"
...@@ -50,11 +51,9 @@ pull_request_rules: ...@@ -50,11 +51,9 @@ pull_request_rules:
request_reviews: request_reviews:
users: users:
- cfromknecht - cfromknecht
- tynes
- mslipper - mslipper
- inphi - inphi
- tuxcanfly - tuxcanfly
- smartcontracts
random_count: 2 random_count: 2
- name: Request protocol critical reviewers - name: Request protocol critical reviewers
conditions: conditions:
...@@ -71,6 +70,16 @@ pull_request_rules: ...@@ -71,6 +70,16 @@ pull_request_rules:
actions: actions:
comment: comment:
message: Hey @{{author}}! This PR has merge conflicts. Please fix them before continuing review. message: Hey @{{author}}! This PR has merge conflicts. Please fix them before continuing review.
label:
add:
- conflict
- name: Remove conflicts label when conflicts gone
conditions:
- -conflict
actions:
label:
remove:
- conflict
- name: Notify author when added to merge queue - name: Notify author when added to merge queue
conditions: conditions:
- "check-pending=Queue: Embarked in merge train" - "check-pending=Queue: Embarked in merge train"
...@@ -78,3 +87,13 @@ pull_request_rules: ...@@ -78,3 +87,13 @@ pull_request_rules:
comment: comment:
message: | message: |
This PR is next in line to be merged, and will be merged as soon as checks pass. This PR is next in line to be merged, and will be merged as soon as checks pass.
- name: Notify author when merge queue failed
conditions:
- "check-failed=Queue: Embarked in merge train"
actions:
comment:
message: |
Merge failed. Please see automated check logs for more details.
label:
remove:
- on-merge-train
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