Skip to content

Commit 004c960

Browse files
authored
Merge pull request #68 from hashicorp/restore-hashibot-behaviors
restore hashibot behaviors after org transfer
2 parents f8d8307 + 5745bcb commit 004c960

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.hashibot.hcl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.COMMITTERS_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-response", "stale"]
14+
only_non_maintainers = true
15+
}
16+
17+
behavior "pull_request_size_labeler" "size" {
18+
label_prefix = "size/"
19+
label_map = {
20+
"size/XS" = {
21+
from = 0
22+
to = 30
23+
}
24+
"size/S" = {
25+
from = 31
26+
to = 60
27+
}
28+
"size/M" = {
29+
from = 61
30+
to = 150
31+
}
32+
"size/L" = {
33+
from = 151
34+
to = 300
35+
}
36+
"size/XL" = {
37+
from = 301
38+
to = 1000
39+
}
40+
"size/XXL" = {
41+
from = 1001
42+
to = 0
43+
}
44+
}
45+
}
46+
47+
behavior "pull_request_path_labeler" "cross_provider_labels" {
48+
label_map = {
49+
"documentation" = ["website/**/*"]
50+
"dependencies" = ["vendor/**/*"]
51+
}
52+
}
53+

0 commit comments

Comments
 (0)