-
Notifications
You must be signed in to change notification settings - Fork 2
/
quarkus-angus-mail.tf
36 lines (33 loc) · 1.42 KB
/
quarkus-angus-mail.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Create repository
resource "github_repository" "quarkus_angus_mail" {
name = "quarkus-angus-mail"
description = "The Angus Mail project is a compatible implementation of the Jakarta Mail Specification 2.1+ providing a platform-independent and protocol-independent framework to build mail and messaging applications"
homepage_url = "https://eclipse-ee4j.github.io/angus-mail/"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "mail", "smtp", "pop3", "imap", "quarkus"]
}
# Create team
resource "github_team" "quarkus_angus_mail" {
name = "quarkiverse-angus-mail"
description = "angus-mail 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_angus_mail" {
team_id = github_team.quarkus_angus_mail.id
repository = github_repository.quarkus_angus_mail.name
permission = "maintain"
}
# Add users to the team
resource "github_team_membership" "quarkus_angus_mail" {
for_each = { for tm in ["ppalaga", "maxandersen"] : tm => tm }
team_id = github_team.quarkus_angus_mail.id
username = each.value
role = "maintainer"
}