Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
variable repositories {
default = {
"0" = "fakedata"
"1" = "deloominator"
}
}
resource "github_issue_label" "gardening-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "gardening"
color = "006b75"
}
resource "github_issue_label" "bug-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "bug"
color = "ee0701"
}
resource "github_issue_label" "feature-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "feature"
color = "84b6eb"
}
resource "github_issue_label" "good-first-patch-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "good first patch"
color = "128A0C"
}
resource "github_issue_label" "testing-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "testing"
color = "fef2c0"
}
resource "github_issue_label" "wip-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "wip"
color = "fbca04"
}
resource "github_issue_label" "doc-label" {
count = "${length(var.repositories)}"
repository = "${lookup(var.repositories, count.index)}"
name = "doc"
color = "5319e7"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment