Skip to content

Commit

Permalink
Introduce quarkus-pact
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 18, 2022
1 parent d8dc838 commit 885cc0c
Show file tree
Hide file tree
Showing 2 changed files with 36 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 @@ -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
Expand Down
35 changes: 35 additions & 0 deletions quarkus-pact.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 885cc0c

Please sign in to comment.