Commit f2bcdd5a authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Add a job to nag when changesets are missing (#2450)

Mergify will now add a comment asking if you forgot a changeset if you change TS, Go, or JS code without adding one.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent ae112021
...@@ -5,22 +5,22 @@ queue_rules: ...@@ -5,22 +5,22 @@ queue_rules:
pull_request_rules: pull_request_rules:
- name: Automatic merge on approval - name: Automatic merge on approval
conditions: conditions:
- and: - and:
- "#review-threads-unresolved=0" - "#review-threads-unresolved=0"
- "#approved-reviews-by>=2" - "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0" - "#changes-requested-reviews-by=0"
- or: - or:
- and: - and:
- "label!=SR-Risk" - "label!=SR-Risk"
- "label!=C-Protocol-Critical" - "label!=C-Protocol-Critical"
- and: - and:
- "label=SR-Risk" - "label=SR-Risk"
- "approved-reviews-by=maurelian" - "approved-reviews-by=maurelian"
- and: - and:
- "label=C-Protocol-Critical" - "label=C-Protocol-Critical"
- or: - or:
- "approved-reviews-by=tynes" - "approved-reviews-by=tynes"
- "approved-reviews-by=smartcontracts" - "approved-reviews-by=smartcontracts"
actions: actions:
queue: queue:
name: default name: default
...@@ -97,3 +97,12 @@ pull_request_rules: ...@@ -97,3 +97,12 @@ pull_request_rules:
label: label:
remove: remove:
- on-merge-train - on-merge-train
- name: Nag changesets
conditions:
- and:
- 'files~=\.(ts|go|js|mod|sum)$'
- '-files~=^\.changeset/(.*)\.md'
actions:
comment:
message: |
This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?
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