From ab97e05b2595492a674436fa91bb5f210927d86e Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Mon, 11 Nov 2019 14:11:45 -0800 Subject: [PATCH 1/3] Add stale issue closer behavior --- .hashibot.hcl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.hashibot.hcl b/.hashibot.hcl index 990c13b7572..c72c64d37cc 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -11,6 +11,20 @@ poll "closed_issue_locker" "locker" { EOF } +poll "stale_issue_closer" "closer" { + schedule = "0 50 12 * * *" + no_reply_in_last = "2160h" # 90 days + max_issues = 500 + sleep_between_issues = "5s" + created_after = "2019-11-11" + exclude_labels = ["needs-triage"] + message = <<-EOF + I'm going to close this issue due to inactivity (_90 days_ without response ⏳ ). This helps our maintainers find and focus on the active issues. + + If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! + EOF +} + behavior "deprecated_import_commenter" "hashicorp_terraform" { import_regexp = "github.com/hashicorp/terraform/" marker_label = "terraform-plugin-sdk-migration" From 21091e91cd44f06330fec06ab2df4060e30105fc Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Mon, 11 Nov 2019 16:00:59 -0800 Subject: [PATCH 2/3] Update stale issue closer schedule to not overlap with other uses --- .hashibot.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.hashibot.hcl b/.hashibot.hcl index c72c64d37cc..8f986379ac4 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -12,7 +12,7 @@ poll "closed_issue_locker" "locker" { } poll "stale_issue_closer" "closer" { - schedule = "0 50 12 * * *" + schedule = "0 10 3 * * *" no_reply_in_last = "2160h" # 90 days max_issues = 500 sleep_between_issues = "5s" From ec3e4151d5da92be3a7ebb41b647341558276bea Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Tue, 12 Nov 2019 13:27:20 -0800 Subject: [PATCH 3/3] Updating params for closing stale issues --- .hashibot.hcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.hashibot.hcl b/.hashibot.hcl index 8f986379ac4..25b7d99278f 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -16,8 +16,9 @@ poll "stale_issue_closer" "closer" { no_reply_in_last = "2160h" # 90 days max_issues = 500 sleep_between_issues = "5s" - created_after = "2019-11-11" - exclude_labels = ["needs-triage"] + created_after = "2019-06-01" + exclude_labels = ["needs-triage", "technical-debt"] + extra_search_params = "reactions:<20 no:milestone no:assignee" message = <<-EOF I'm going to close this issue due to inactivity (_90 days_ without response ⏳ ). This helps our maintainers find and focus on the active issues.