Skip to content

Commit

Permalink
Introduce quarkus-business-score
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 13, 2024
1 parent bb4945d commit 140c5a9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-business-score.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 140c5a9

Please sign in to comment.