Skip to content

Commit

Permalink
Add Hashibot configuration (hashicorp#157)
Browse files Browse the repository at this point in the history
* Add Hashibot configuration

* Update .hashibot.hcl

Co-authored-by: Paul Tyng <ptyng@hashicorp.com>

Co-authored-by: Paul Tyng <ptyng@hashicorp.com>
  • Loading branch information
radeksimko and paultyng authored Jun 12, 2020
1 parent 4f315b8 commit 378dba4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .hashibot.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
behavior "remove_labels_on_reply" "remove_stale" {
labels = ["waiting-response", "stale"]
only_non_maintainers = true
}

poll "closed_issue_locker" "locker" {
schedule = "0 3 * * *" # daily
closed_for = "720h" # 30 days
no_comment_if_no_activity_for = "1440h" # 60 days
max_issues = 500
sleep_between_issues = "5s"

message = <<-EOF
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.
EOF
}

poll "stale_issue_closer" "closer" {
schedule = "0 3 * * *" # daily
labels = ["stale", "waiting-response"]
no_reply_in_last = "2160h" # 90 days
max_issues = 500
sleep_between_issues = "5s"
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.
EOF
}

0 comments on commit 378dba4

Please sign in to comment.