-
Notifications
You must be signed in to change notification settings - Fork 13
/
quarkus-shardingsphere-jdbc.tf
33 lines (30 loc) · 1.23 KB
/
quarkus-shardingsphere-jdbc.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
# Create repository
resource "github_repository" "quarkus_shardingsphere_jdbc" {
name = "quarkus-shardingsphere-jdbc"
description = "Quarkus Sharding Sphere JDBC Extension"
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["middleware", "database", "distributed", "quarkus-extension"]
}
# Create team
resource "github_team" "quarkus_shardingsphere_jdbc" {
name = "quarkiverse-shardingsphere-jdbc"
description = "Quarkiverse team for the Sharding Sphere JDBC extension"
create_default_maintainer = false
privacy = "closed"
parent_team_id = data.github_team.quarkiverse_members.id
}
# Add team to repository
resource "github_team_repository" "quarkus_shardingsphere_jdbc" {
team_id = github_team.quarkus_shardingsphere_jdbc.id
repository = github_repository.quarkus_shardingsphere_jdbc.name
permission = "maintain"
}
# Add users to the team
resource "github_team_membership" "quarkus_shardingsphere_jdbc" {
for_each = { for tm in ["zhfeng"] : tm => tm }
team_id = github_team.quarkus_shardingsphere_jdbc.id
username = each.value
role = "maintainer"
}