From 1f7481b1da00b80985610b2672f92838da2292ea Mon Sep 17 00:00:00 2001 From: Piotr Parczewski Date: Fri, 11 Oct 2024 11:23:13 +0200 Subject: [PATCH] Create additional labels --- terraform/github/repositories.tf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/terraform/github/repositories.tf b/terraform/github/repositories.tf index cc794289..662b8999 100644 --- a/terraform/github/repositories.tf +++ b/terraform/github/repositories.tf @@ -57,6 +57,22 @@ resource "github_issue_label" "community_files_label" { description = "Community files have been modified" } +resource "github_issue_label" "magnum_label" { + for_each = toset(flatten(values(var.repositories))) + repository = each.value + name = "magnum" + color = "6B0560" + description = "All things OpenStack Magnum related" +} + +resource "github_issue_label" "monitoring_label" { + for_each = toset(flatten(values(var.repositories))) + repository = each.value + name = "monitoring" + color = "FBCA04" + description = "All things related to observability & telemetry" +} + data "github_repository" "repositories" { for_each = toset(flatten(values(var.repositories))) full_name = format("%s/%s", var.owner, each.value)