Skip to content

Commit

Permalink
Introduce quarkus-homeassistant (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Mar 25, 2024
1 parent 6bdd602 commit 9881bd6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ terraform-scripts/quarkus-helm.tf @quarkiverse/qua
terraform-scripts/quarkus-hibernate-search-extras.tf @quarkiverse/quarkiverse-hibernate-search-extras
terraform-scripts/quarkus-hibernate-types.tf @quarkiverse/quarkiverse-hibernate-types
terraform-scripts/quarkus-hivemq-client.tf @quarkiverse/quarkiverse-hivemq-client
terraform-scripts/quarkus-homeassistant.tf @quarkiverse/quarkiverse-homeassistant
terraform-scripts/quarkus-itext.tf @quarkiverse/quarkiverse-itext
terraform-scripts/quarkus-jackson-jq.tf @quarkiverse/quarkiverse-jackson-jq
terraform-scripts/quarkus-jaeger.tf @quarkiverse/quarkiverse-jaeger
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-homeassistant.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_homeassistant" {
name = "quarkus-homeassistant"
description = "Quarkus bringing developer joy to HomeAssistant"
homepage_url = "https://docs.quarkiverse.io/quarkus-homeassistant/"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "homeassistant", "iot"]
}

# Create team
resource "github_team" "quarkus_homeassistant" {
name = "quarkiverse-homeassistant"
description = "HomeAssistant team"
create_default_maintainer = false
privacy = "closed"
parent_team_id = data.github_team.quarkiverse_members.id
}

# Add team to repository
resource "github_team_repository" "quarkus_homeassistant" {
team_id = github_team.quarkus_homeassistant.id
repository = github_repository.quarkus_homeassistant.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_homeassistant" {
for_each = { for tm in ["maxandersen"] : tm => tm }
team_id = github_team.quarkus_homeassistant.id
username = each.value
role = "maintainer"
}

0 comments on commit 9881bd6

Please sign in to comment.