Skip to content

Commit 58ac2a3

Browse files
authored
Add HashiBot behavior to lock closed issues after 30 days. (#10691)
1 parent e5b7a8a commit 58ac2a3

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.hashibot.hcl

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
queued_behavior "release_commenter" "releases" {
2-
repo_prefix = "terraform-provider-"
1+
poll "closed_issue_locker" "locker" {
2+
schedule = "0 50 14 * * *"
3+
closed_for = "720h" # 30 days
4+
max_issues = 500
5+
sleep_between_issues = "5s"
36

47
message = <<-EOF
5-
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.
8+
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.
69
7-
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!
10+
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
811
EOF
912
}
1013

@@ -32,6 +35,16 @@ behavior "deprecated_import_commenter" "hashicorp_terraform" {
3235
EOF
3336
}
3437

38+
queued_behavior "release_commenter" "releases" {
39+
repo_prefix = "terraform-provider-"
40+
41+
message = <<-EOF
42+
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.
43+
44+
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!
45+
EOF
46+
}
47+
3548
# Catch the following in issues:
3649
# *aws_XXX
3750
# * aws_XXX

0 commit comments

Comments
 (0)