diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2f54d31..87aa13c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -13,6 +13,7 @@ terraform-scripts/quarkus-asyncapi.tf @quarkiverse/qua terraform-scripts/quarkus-authzed-client.tf @quarkiverse/quarkiverse-authzed-client terraform-scripts/quarkus-azure-services.tf @quarkiverse/quarkiverse-azure-services terraform-scripts/quarkus-backstage.tf @quarkiverse/quarkiverse-backstage +terraform-scripts/quarkus-barcode.tf @quarkiverse/quarkiverse-barcode 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 diff --git a/terraform-scripts/quarkus-barcode.tf b/terraform-scripts/quarkus-barcode.tf new file mode 100644 index 0000000..4ee4c2f --- /dev/null +++ b/terraform-scripts/quarkus-barcode.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_barcode" { + name = "quarkus-barcode" + description = "Barcode and QRCode support in Quarkus" + homepage_url = "https://github.com/zxing/zxing" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "barcode", "qrcode", "barcode4j", "zxing", "barbecue"] +} + +# Create team +resource "github_team" "quarkus_barcode" { + name = "quarkiverse-barcode" + description = "barcode 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_barcode" { + team_id = github_team.quarkus_barcode.id + repository = github_repository.quarkus_barcode.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_barcode" { + for_each = { for tm in ["melloware", "turing85", "FroMage"] : tm => tm } + team_id = github_team.quarkus_barcode.id + username = each.value + role = "maintainer" +}