Skip to content

Commit

Permalink
Create additional labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cityofships committed Oct 11, 2024
1 parent 454287e commit 1f7481b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/github/repositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f7481b

Please sign in to comment.