forked from hashicorp/consul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hashibot.hcl
51 lines (44 loc) · 1.81 KB
/
.hashibot.hcl
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
49
50
51
behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = ["crash"]
}
behavior "remove_labels_on_reply" "remove_stale" {
labels = ["waiting-reply"]
}
poll "stale_issue_closer" "waiting_reply_closer" {
schedule = "0 0 2 * * *"
no_reply_in_last = "480h" # 20 days
max_issues = 50
sleep_between_issues = "5s"
labels = ["waiting-reply-🤖"]
message = <<-EOF
Hey there,
This issue has been automatically closed because there hasn't been any activity for at least _20_ days.
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:.
EOF
}
poll "stale_issue_closer" "old_issue_closer" {
schedule = "0 0 3 * * *"
no_reply_in_last = "1s"
max_issues = 100
sleep_between_issues = "5s"
labels = ["close-old-issue-🤖"]
message = <<-EOF
Hey there,
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:.
EOF
}
# poll "closed_issue_locker" "locker" {
# schedule = "0 0 4 * * *"
# closed_for = "720h" # 30 days
# max_issues = 250
# sleep_between_issues = "1m"
#
# message = <<-EOF
# Hey there,
#
# This issue has been automatically locked because it is closed and there hasn't been any activity for at least _30_ days.
#
# 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:.
# EOF
# }