From 0555d63de447405385c627ba526c03b9bd5b2c02 Mon Sep 17 00:00:00 2001 From: Hans Hasselberg Date: Mon, 27 Jan 2020 09:39:58 +0100 Subject: [PATCH] Revert "disable most of hashibot" This reverts commit 977bafcd25dea9b493fc5df596c2f89e72e2a7b8. --- .hashibot.hcl | 88 +++++++++++++++++++++++++-------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.hashibot.hcl b/.hashibot.hcl index 2063ef6e1f..8a7e069df0 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -7,47 +7,47 @@ behavior "remove_labels_on_reply" "remove_stale" { labels = ["waiting-reply"] } -# poll "closed_issue_locker" "locker" { -# schedule = "0 50 1 * * *" -# 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 -# } -# -# poll "stale_issue_closer" "stale_closer" { -# schedule = "0 22 23 * * *" -# no_reply_in_last = "480h" # 20 days -# max_issues = 250 -# sleep_between_issues = "1m" -# 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" "close_closer" { -# schedule = "0 50 2 * * *" -# no_reply_in_last = "1m" # hack to close issue with that label immediately. -# max_issues = 250 -# sleep_between_issues = "1m" -# labels = ["close-issue"] -# message = <<-EOF -# Hey there, -# -# This issue has been automatically closed because it was labled with `close-issue`. -# -# 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 "closed_issue_locker" "locker" { + schedule = "0 50 1 * * *" + 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 +} + +poll "stale_issue_closer" "stale_closer" { + schedule = "0 22 23 * * *" + no_reply_in_last = "480h" # 20 days + max_issues = 250 + sleep_between_issues = "1m" + 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" "close_closer" { + schedule = "0 50 2 * * *" + no_reply_in_last = "1m" # hack to close issue with that label immediately. + max_issues = 250 + sleep_between_issues = "1m" + labels = ["close-issue"] + message = <<-EOF + Hey there, + + This issue has been automatically closed because it was labled with `close-issue`. + + 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 +}