forked from hashicorp/terraform-provider-google
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hashibot.hcl
86 lines (77 loc) · 2.26 KB
/
.hashibot.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
behavior "regexp_issue_labeler" "bug_label" {
regexp = " \\[issue-type:bug-report\\] "
labels = ["bug"]
}
behavior "regexp_issue_labeler" "enhancement_label" {
regexp = " \\[issue-type:enhancement\\] "
labels = ["enhancement"]
}
poll "stale_issue_closer" "closer" {
schedule = "0 50 12 * * *"
labels = ["stale"]
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 feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
EOF
}
poll "closed_issue_locker" "locker" {
schedule = "0 50 13 * * *"
closed_for = "720h" # 30 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
EOF
}
behavior "assign_random_reviewer" "random" {
reviewers = [
"danawillow",
"megan07",
"rileykarson",
"ndmckinley",
"slevenick",
"c2thorn",
]
only_non_maintainers = true
}
behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = ["crash", "bug"]
}
behavior "remove_labels_on_reply" "remove_stale" {
labels = ["waiting-response", "stale"]
only_non_maintainers = true
}
behavior "pull_request_size_labeler" "size" {
label_prefix = "size/"
label_map = {
"size/XS" = {
from = 0
to = 30
}
"size/S" = {
from = 31
to = 60
}
"size/M" = {
from = 61
to = 150
}
"size/L" = {
from = 151
to = 300
}
"size/XL" = {
from = 301
to = 1000
}
"size/XXL" = {
from = 1001
to = 0
}
}
}