From 885cc0ce8c3db0cf6b2857f295689688c783bd92 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 18 Oct 2022 11:12:22 -0300 Subject: [PATCH] Introduce quarkus-pact - Fixes https://github.com/quarkusio/quarkus/issues/27729 --- .github/CODEOWNERS | 1 + quarkus-pact.tf | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 quarkus-pact.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f04926d..d62679e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -63,6 +63,7 @@ quarkus-opencv.tf @quarkiverse/quarkiverse-opencv quarkus-openfga-client.tf @quarkiverse/quarkiverse-openfga-client quarkus-opentelemetry-exporter.tf @quarkiverse/quarkiverse-opentelemetry-exporter quarkus-operator-sdk.tf @quarkiverse/quarkiverse-operator-sdk +quarkus-pact.tf @quarkiverse/quarkiverse-pact quarkus-pinot.tf @quarkiverse/quarkiverse-pinot quarkus-pooled-jms.tf @quarkiverse/quarkiverse-pooled-jms quarkus-prettytime.tf @quarkiverse/quarkiverse-prettytime diff --git a/quarkus-pact.tf b/quarkus-pact.tf new file mode 100644 index 0000000..e44781e --- /dev/null +++ b/quarkus-pact.tf @@ -0,0 +1,35 @@ +# Create repository +resource "github_repository" "quarkus_pact" { + name = "quarkus-pact" + description = "Pact is a widely-recommended framework for consumer-driven contract testing." + homepage_url = "https://pact.io/" + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "pact", "consumer-driven-contract-testing"] +} + +# Create team +resource "github_team" "quarkus_pact" { + name = "quarkiverse-pact" + description = "Quarkiverse Pact 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_pact" { + team_id = github_team.quarkus_pact.id + repository = github_repository.quarkus_pact.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_pact" { + for_each = { for tm in ["holly-cummins"] : tm => tm } + team_id = github_team.quarkus_pact.id + username = each.value + role = "maintainer" +}