2019-09-06 14:22:43 -05:00
behavior "pull_request_path_labeler" "sdk_cherrypicker" {
label_map = {
"sdkv1" = [
# 1-1 package mapping between core and sdk
"helper/**" ,
"httpclient/**" ,
"plugin/**" ,
"terraform/**" ,
"internal/earlyconfig/**" ,
"internal/initwd/**" ,
"internal/modsdir/**" ,
"internal/tfplugin5/**" ,
# these packages have been moved under internal/ in the sdk
"addrs/**" ,
"command/format/**" ,
"configs/**" ,
"dag/**" ,
"flatmap/**" ,
"lang/**" ,
"moduledeps/**" ,
"plans/**" ,
"providers/**" ,
"provisioners/**" ,
"registry/**" ,
"states/**" ,
"svchost/**" ,
"tfdiags/**" ,
"version/**"
]
}
}
2019-06-17 21:59:27 -05:00
behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = [ "crash", "bug" ]
}
behavior "remove_labels_on_reply" "remove_stale" {
2019-06-28 14:31:53 -05:00
labels = [ "waiting-response", "stale" ]
2019-06-17 21:59:27 -05:00
only_non_maintainers = true
}
poll "label_issue_migrater" "provider_migrater" {
2019-07-17 09:00:16 -05:00
schedule = "0 20 * * * *"
2019-06-17 21:59:27 -05:00
new_owner = env . PROVIDERS_OWNER
repo_prefix = "terraform-provider-"
label_prefix = "provider/"
excluded_label_prefixes = [ "backend/", "provisioner/" ]
excluded_labels = [ "build", "cli", "config", "core", "new-provider", "new-provisioner", "new-remote-state", "provider/terraform" ]
aliases = {
"provider/google-cloud" = "provider/google"
"provider/influx" = "provider/influxdb"
"provider/vcloud" = "provider/vcd"
}
issue_header = < < - EOF
2019-07-02 18:46:00 -05:00
_This issue was originally opened by @ ${ v a r . u s e r } as ${ v a r . r e p o s i t o r y } #${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._
2019-06-17 21:59:27 -05:00
< hr >
EOF
2019-06-27 18:00:36 -05:00
migrated_comment = "This issue has been automatically migrated to ${var.repository}#${var.issue_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}."
2019-06-17 22:01:10 -05:00
}
2019-07-23 10:50:18 -05:00
poll "closed_issue_locker" "locker" {
schedule = "0 50 1 * * *"
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 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 details necessary to investigate further .
EOF
}