Skip to content

Commit 2055074

Browse files
authored
Merge pull request #21765 from hashicorp/appilon/hashibot
capture existing config in new config file/format for hashibot
2 parents 2ab2796 + 4a080f5 commit 2055074

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.hashibot.hcl

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
behavior "regexp_issue_labeler" "panic_label" {
2+
regexp = "panic:"
3+
labels = ["crash", "bug"]
4+
}
5+
6+
behavior "regexp_issue_notifier" "panic_notify" {
7+
regexp = "panic:"
8+
slack_channel = env.TERRAFORM_SLACK_CHANNEL
9+
message = "Panic report! https://github.com/${var.repository}/issues/${var.issue_number} has a panic in it."
10+
}
11+
12+
behavior "remove_labels_on_reply" "remove_stale" {
13+
labels = ["waiting-reponse", "stale"]
14+
only_non_maintainers = true
15+
}
16+
17+
poll "label_issue_migrater" "provider_migrater" {
18+
new_owner = env.PROVIDERS_OWNER
19+
repo_prefix = "terraform-provider-"
20+
label_prefix = "provider/"
21+
excluded_label_prefixes = ["backend/", "provisioner/"]
22+
excluded_labels = ["build", "cli", "config", "core", "new-provider", "new-provisioner", "new-remote-state", "provider/terraform"]
23+
aliases = {
24+
"provider/google-cloud" = "provider/google"
25+
"provider/influx" = "provider/influxdb"
26+
"provider/vcloud" = "provider/vcd"
27+
}
28+
issue_header = <<-EOF
29+
_This issue was originally opened by ${var.user} as ${var.repository}#${var.issue_number}. It was migrated here as a result of the [provider split](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/). The original body of the issue is below._
30+
31+
<hr>
32+
33+
EOF
34+
migrated_comment = "This issue has been automatically migrated to ${var.repository}#${var.number} because it looks like an issue with that provider. If you believe this is _not_ an issue with the provider, please reply to ${var.repository}#${var.issue_number}."
35+
}

0 commit comments

Comments
 (0)