diff --git a/rotterdam.tf b/rotterdam.tf index db5ca7a..6a03cf8 100644 --- a/rotterdam.tf +++ b/rotterdam.tf @@ -102,7 +102,17 @@ resource "github_repository_collaborators" "rotterdam" { team { permission = "maintain" - team_id = github_team.gemeente-rotterdam.slug + team_id = github_team.gemeente-rotterdam-maintainer.slug + } + + team { + permission = "push" + team_id = github_team.gemeente-rotterdam-committer.slug + } + + team { + permission = "triage" + team_id = github_team.gemeente-rotterdam-triage.slug } team { diff --git a/team-members.tf b/team-members.tf index 14d6d4d..7a27044 100644 --- a/team-members.tf +++ b/team-members.tf @@ -603,9 +603,29 @@ resource "github_team_members" "rivm" { } } +resource "github_team_members" "gemeente-rotterdam-triage" { + team_id = github_team.gemeente-rotterdam-triage.id + + members { + username = data.github_user.bartheijs.username + } + + members { + username = data.github_user.RicusMaximus.username + } +} + resource "github_team_members" "gemeente-rotterdam-committer" { team_id = github_team.gemeente-rotterdam-committer.id + members { + username = data.github_user.Fiemke.username + } +} + +resource "github_team_members" "gemeente-rotterdam-maintainer" { + team_id = github_team.gemeente-rotterdam-maintainer.id + members { username = data.github_user.sanderdegoose.username } diff --git a/team.tf b/team.tf index 8fabeef..2dbee40 100644 --- a/team.tf +++ b/team.tf @@ -87,10 +87,24 @@ resource "github_team" "gemeente-rotterdam" { privacy = "closed" } +resource "github_team" "gemeente-rotterdam-triage" { + name = "gemeente-rotterdam-triage" + parent_team_id = github_team.gemeente-rotterdam.id + description = "Rotterdam Design System team (read only)" + privacy = "closed" +} + resource "github_team" "gemeente-rotterdam-committer" { name = "gemeente-rotterdam-committer" parent_team_id = github_team.gemeente-rotterdam.id - description = "Rotterdam Design System team" + description = "Rotterdam Design System team (read and write)" + privacy = "closed" +} + +resource "github_team" "gemeente-rotterdam-maintainer" { + name = "gemeente-rotterdam-committer" + parent_team_id = github_team.gemeente-rotterdam.id + description = "Rotterdam Design System team (maintainer)" privacy = "closed" } diff --git a/user.tf b/user.tf index 07b7f4a..2f0bcd1 100644 --- a/user.tf +++ b/user.tf @@ -305,3 +305,15 @@ data "github_user" "Patricia-de-vos" { data "github_user" "GerwinTerpstra" { username = "GerwinTerpstra" } + +data "github_user" "Fiemke" { + username = "Fiemke" +} + +data "github_user" "RicusMaximus" { + username = "RicusMaximus" +} + +data "github_user" "bartheijs" { + username = "bartheijs" +}