-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathissue_labels.tf
More file actions
18 lines (18 loc) · 868 Bytes
/
issue_labels.tf
File metadata and controls
18 lines (18 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# TODO: enable when https://github.com/integrations/terraform-provider-github/pull/2052 is merged
## HashiCorp Product-specific Issue Labels are assigned to all Terraform repositories
## This can be solved by either using a nested `for_each`, or by modularizing the code
# module "hashicorp_issue_labels" {
# source = "./modules/github-issue-labels"
#
# # see https://developer.hashicorp.com/terraform/language/meta-arguments/for_each
# for_each = {
# # iterate over the `name` property of the `github_repository` output of the
# # GH Repository Module and assign `name` as the identifier for each iteration
# for repository in module.terraform_repositories : repository.github_repository.name => {
# repository = repository
# }
# }
#
# issue_labels = var.issue_labels_hashicorp
# repository = each.value.repository.github_repository.name
# }