Skip to content

Commit 8f61558

Browse files
hashibot: let hashibot help us more (hashicorp#7281)
1 parent 3532c56 commit 8f61558

File tree

1 file changed

+29
-31
lines changed

1 file changed

+29
-31
lines changed

.hashibot.hcl

+29-31
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,36 @@ behavior "remove_labels_on_reply" "remove_stale" {
77
labels = ["waiting-reply"]
88
}
99

10+
poll "stale_issue_closer" "waiting_reply_closer" {
11+
schedule = "0 0 2 * * *"
12+
no_reply_in_last = "480h" # 20 days
13+
max_issues = 50
14+
sleep_between_issues = "5s"
15+
labels = ["waiting-reply-🤖"]
16+
message = <<-EOF
17+
Hey there,
18+
19+
This issue has been automatically closed because there hasn't been any activity for at least _20_ days.
20+
21+
If you are still experiencing problems, or still have questions, feel free to [open a new one](https://github.com/hashicorp/consul/issues/new) :+1:.
22+
EOF
23+
}
24+
25+
poll "stale_issue_closer" "old_issue_closer" {
26+
schedule = "0 0 3 * * *"
27+
no_reply_in_last = "1s"
28+
max_issues = 100
29+
sleep_between_issues = "5s"
30+
labels = ["close-old-issue-🤖"]
31+
message = <<-EOF
32+
Hey there,
33+
34+
This issue was reported on a version of Consul that is quite old. Based on the volume of changes since that version we encourage you to try reproducing with the latest version of Consul. If you feel the issue is critical and on an older version of Consul, or still exists in the current version, feel free to [open a new issue](https://github.com/hashicorp/consul/issues/new) :+1:.
35+
EOF
36+
}
37+
1038
# poll "closed_issue_locker" "locker" {
11-
# schedule = "0 50 1 * * *"
39+
# schedule = "0 0 4 * * *"
1240
# closed_for = "720h" # 30 days
1341
# max_issues = 250
1442
# sleep_between_issues = "1m"
@@ -21,33 +49,3 @@ behavior "remove_labels_on_reply" "remove_stale" {
2149
# If you are still experiencing problems, or still have questions, feel free to [open a new one](https://github.com/hashicorp/consul/issues/new) :+1:.
2250
# EOF
2351
# }
24-
#
25-
# poll "stale_issue_closer" "stale_closer" {
26-
# schedule = "0 22 23 * * *"
27-
# no_reply_in_last = "480h" # 20 days
28-
# max_issues = 250
29-
# sleep_between_issues = "1m"
30-
# labels = ["waiting-reply"]
31-
# message = <<-EOF
32-
# Hey there,
33-
#
34-
# This issue has been automatically closed because there hasn't been any activity for at least _20_ days.
35-
#
36-
# If you are still experiencing problems, or still have questions, feel free to [open a new one](https://github.com/hashicorp/consul/issues/new) :+1:.
37-
# EOF
38-
# }
39-
#
40-
# poll "stale_issue_closer" "close_closer" {
41-
# schedule = "0 50 2 * * *"
42-
# no_reply_in_last = "1m" # hack to close issue with that label immediately.
43-
# max_issues = 250
44-
# sleep_between_issues = "1m"
45-
# labels = ["close-issue"]
46-
# message = <<-EOF
47-
# Hey there,
48-
#
49-
# This issue has been automatically closed because it was labled with `close-issue`.
50-
#
51-
# If you are still experiencing problems, or still have questions, feel free to [open a new one](https://github.com/hashicorp/consul/issues/new) :+1:.
52-
# EOF
53-
# }

0 commit comments

Comments
 (0)