From 58ac2a337cbeb82a56aa8d4a0dcdbbd7c19698c6 Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Thu, 31 Oct 2019 10:45:59 -0700 Subject: [PATCH] Add HashiBot behavior to lock closed issues after 30 days. (#10691) --- .hashibot.hcl | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.hashibot.hcl b/.hashibot.hcl index 24f4c9c220c9..6aca2b0511cc 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -1,10 +1,13 @@ -queued_behavior "release_commenter" "releases" { - repo_prefix = "terraform-provider-" +poll "closed_issue_locker" "locker" { + schedule = "0 50 14 * * *" + closed_for = "720h" # 30 days + max_issues = 500 + sleep_between_issues = "5s" message = <<-EOF - This has been released in [version ${var.release_version} of the Terraform AWS provider](${var.changelog_link}). Please see the [Terraform documentation on provider versioning](https://www.terraform.io/docs/configuration/providers.html#provider-versions) or reach out if you need any assistance upgrading. + I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues. - For further feature requests or bug reports with this functionality, please create a [new GitHub issue](https://github.com/terraform-providers/terraform-provider-aws/issues/new/choose) following the template for triage. Thanks! + If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! EOF } @@ -32,6 +35,16 @@ behavior "deprecated_import_commenter" "hashicorp_terraform" { EOF } +queued_behavior "release_commenter" "releases" { + repo_prefix = "terraform-provider-" + + message = <<-EOF + This has been released in [version ${var.release_version} of the Terraform AWS provider](${var.changelog_link}). Please see the [Terraform documentation on provider versioning](https://www.terraform.io/docs/configuration/providers.html#provider-versions) or reach out if you need any assistance upgrading. + + For further feature requests or bug reports with this functionality, please create a [new GitHub issue](https://github.com/terraform-providers/terraform-provider-aws/issues/new/choose) following the template for triage. Thanks! + EOF +} + # Catch the following in issues: # *aws_XXX # * aws_XXX