Skip to content

Commit

Permalink
Introduce quarkus-resteasy-problem (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Jul 18, 2024
1 parent 6c915e4 commit e4d20fa
Show file tree
Hide file tree
Showing 2 changed files with 37 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 @@ -111,6 +111,7 @@ terraform-scripts/quarkus-reactive-mysql-pool-client @quarkiverse/qua
terraform-scripts/quarkus-reactive-messaging-http.tf @quarkiverse/quarkiverse-reactive-messaging-http
terraform-scripts/quarkus-reactive-messaging-nats-jetstream.tf @quarkiverse/quarkiverse-reactive-messaging-nats-jetstream
terraform-scripts/quarkus-renarde.tf @quarkiverse/quarkiverse-renarde
terraform-scripts/quarkus-resteasy-problem.tf @quarkiverse/quarkiverse-resteasy-problem
terraform-scripts/quarkus-roq.tf @quarkiverse/quarkiverse-roq
terraform-scripts/quarkus-rsocket.tf @quarkiverse/quarkiverse-rsocket
terraform-scripts/quarkus-sa-token.tf @quarkiverse/quarkiverse-sa-token
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-resteasy-problem.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_resteasy_problem" {
name = "quarkus-resteasy-problem"
description = "Unified error responses for Quarkus REST APIs via Problem Details for HTTP APIs (RFC9457 & RFC7807)"
homepage_url = "https://docs.quarkiverse.io/quarkus-resteasy-problem/dev"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "rest-problem", "resteasy", "exception-handling", "rfc7807", "rfc9457"]
}

# Create team
resource "github_team" "quarkus_resteasy_problem" {
name = "quarkiverse-resteasy-problem"
description = "resteasy-problem 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_resteasy_problem" {
team_id = github_team.quarkus_resteasy_problem.id
repository = github_repository.quarkus_resteasy_problem.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_resteasy_problem" {
for_each = { for tm in ["lwitkowski"] : tm => tm }
team_id = github_team.quarkus_resteasy_problem.id
username = each.value
role = "maintainer"
}

0 comments on commit e4d20fa

Please sign in to comment.