From 140c5a9fa1201463afdb72281034658b8d79da1f Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 13 May 2024 09:06:55 -0300 Subject: [PATCH] Introduce quarkus-business-score --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-business-score.tf | 36 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 terraform-scripts/quarkus-business-score.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2bdeab1..f990e6c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -13,6 +13,7 @@ terraform-scripts/quarkus-authzed-client.tf @quarkiverse/qua terraform-scripts/quarkus-azure-services.tf @quarkiverse/quarkiverse-azure-services terraform-scripts/quarkus-bon-jova-rockstar.tf @quarkiverse/quarkiverse-bon-jova-rockstar terraform-scripts/quarkus-bucket4j.tf @quarkiverse/quarkiverse-bucket4j +terraform-scripts/quarkus-business-score.tf @quarkiverse/quarkiverse-business-score terraform-scripts/quarkus-cert-manager.tf @quarkiverse/quarkiverse-cert-manager terraform-scripts/quarkus-code-server.tf @quarkiverse/quarkiverse-code-server terraform-scripts/quarkus-config-extensions.tf @quarkiverse/quarkiverse-config-extensions diff --git a/terraform-scripts/quarkus-business-score.tf b/terraform-scripts/quarkus-business-score.tf new file mode 100644 index 0000000..b2e95ad --- /dev/null +++ b/terraform-scripts/quarkus-business-score.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_business_score" { + name = "quarkus-business-score" + description = "Collects application business score and detects zombies." + homepage_url = "https://docs.quarkiverse.io/quarkus-business-score/dev/index.html" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension"] +} + +# Create team +resource "github_team" "quarkus_business_score" { + name = "quarkiverse-business-score" + description = "business-score 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_business_score" { + team_id = github_team.quarkus_business_score.id + repository = github_repository.quarkus_business_score.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_business_score" { + for_each = { for tm in ["mkouba"] : tm => tm } + team_id = github_team.quarkus_business_score.id + username = each.value + role = "maintainer" +}