Skip to content

Commit 85b5d51

Browse files
committed
docs: improve copy in the example config file
1 parent cfeff10 commit 85b5d51

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.scm-engine.example.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
11
# See: https://getbootstrap.com/docs/5.3/customize/color/#all-colors
22

33
actions:
4-
- name: Warn that the ticket if older than 30 days
4+
- name: Warn if the Merge Request haven't had commit activity for 21 days and will be closed
55
if: |
6-
// ignore MRs already closed
76
merge_request.state != "closed"
8-
// if last commit happened more than 30 days ago
9-
&& merge_request.time_since_last_commit > duration("30d")
10-
// but still less than 45 days ago (where we close the MR)
11-
&& merge_request.time_since_last_commit < duration("45d")
12-
// and the label to disable this feature is not on the MR
7+
&& merge_request.time_since_last_commit > duration("21d")
8+
&& merge_request.time_since_last_commit < duration("28d")
139
&& not merge_request.has_label("do-not-close")
1410
then:
1511
- action: comment
1612
message: |
17-
Hello!
13+
:wave: Hello!
1814
19-
This Merge Request have not seen any commit activity for 30 days. In an effort to keep our project clean we will automatically close the Merge request after 45 days.
15+
This Merge Request has not seen any commit activity for 21 days.
16+
We will automatically close the Merge request after 28 days to keep our project clean.
2017
21-
You can add the "do-not-close" label to the Merge Request to disable this behavior.
18+
To disable this behavior, add the `do-not-close` label to the Merge Request in the right menu or add a comment with `/label ~"do-not-close"`.
2219
23-
- name: Close ticket if older than 45 days
20+
- name: Close the Merge Request if it haven't had commit activity for 28 days
2421
if: |
2522
merge_request.state != "closed"
26-
&& merge_request.time_since_last_commit > duration("45d")
23+
&& merge_request.time_since_last_commit > duration("28d")
2724
&& not merge_request.has_label("do-not-close")
2825
then:
2926
- action: close
3027
- action: comment
3128
message: |
32-
Hello!
29+
:wave: Hello!
3330
34-
This Merge Request have not seen any commit activity for 45 days. In an effort to keep our project clean we will automatically close the Merge request.
31+
This Merge Request has not seen any commit activity for 28 days.
32+
To keep our project clean, we will close the Merge request now.
3533
36-
You can add the "do-not-close" label to the Merge Request to disable this behavior.
34+
To disable this behavior, add the `do-not-close` label to the Merge Request in the right menu or add a comment with `/label ~"do-not-close"`.
3735
3836
- name: Approve MR if the 'break-glass-approve' label is configured
3937
if: |

0 commit comments

Comments
 (0)