forked from open-feature/ofep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
48 lines (48 loc) · 1.57 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pull_request_rules:
- name: Detect and label OFEPs eligble to be automatically merged
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
- "check-success=Test added-OFEP proposals for status"
actions:
comment:
message: "Hello :wave: @{{author}}, this OFEP is eligible to be merged. It will be automatically merged after 3 working days if no objections are raised."
label:
add:
- automerge
- name: Remove the label
conditions:
- or:
- "#approved-reviews-by=0"
- "#changes-requested-reviews-by>=1"
- "#review-threads-unresolved>=1"
- label=automerge
actions:
label:
remove:
- automerge
- name: Merging an approved OFEP on Thur or Fri after 3 working days
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
- label=automerge
- updated-at<3 days ago
- schedule=Thu-Fri 09:00-19:00[America/Vancouver]
actions:
merge:
method: squash
commit_message_template: "@{{title}}"
- name: Merging an approved OFEP on Mon, Tue, or Wed after 3 working days
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
- label=automerge
- updated-at<5 days ago
- schedule=Mon-Wed 09:00-19:00[America/Vancouver]
actions:
merge:
method: squash
commit_message_template: "@{{title}}"