Skip to content

Instantly share code, notes, and snippets.

@lucapette
Created June 6, 2017 13:38
Show Gist options
  • Save lucapette/962d0cafe7edfceb9c2ba97bf7b6948f to your computer and use it in GitHub Desktop.
Save lucapette/962d0cafe7edfceb9c2ba97bf7b6948f to your computer and use it in GitHub Desktop.
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