Skip to content

Commit 436cbe9

Browse files
authored
Merge branch 'main' into add-user/116
2 parents b7b2503 + c175375 commit 436cbe9

5 files changed

+131
-130
lines changed

terraform/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ terraform {
55
required_providers {
66
github = {
77
source = "integrations/github"
8+
version = "6.3.1"
89
}
910
}
1011
}

terraform/resources-repo-admin-teams.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
resource "github_team" "repo_admin_team" {
33
for_each = local.project_repositories
44

5-
parent_team_id = github_team.repo_team[each.key].id
5+
parent_team_id = github_team.repo_team[each.key].slug
66
name = "${each.key}-admins"
77
description = "Admin team for the ${each.key} repository"
88
privacy = "closed"
@@ -12,7 +12,7 @@ resource "github_team" "repo_admin_team" {
1212
resource "github_team_members" "repo_admin_members" {
1313
for_each = local.project_repositories
1414

15-
team_id = github_team.repo_admin_team[each.key].id
15+
team_id = github_team.repo_admin_team[each.key].slug
1616

1717
dynamic "members" {
1818
for_each = each.value.admins
@@ -28,6 +28,6 @@ resource "github_team_members" "repo_admin_members" {
2828
resource "github_team_repository" "repo_admin_team_access" {
2929
for_each = local.project_repositories
3030
repository = each.key
31-
team_id = github_team.repo_admin_team[each.key].id
31+
team_id = github_team.repo_admin_team[each.key].slug
3232
permission = "admin"
3333
}

terraform/resources-repo-committer-teams.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
resource "github_team" "repo_committer_team" {
33
for_each = local.project_repositories
44

5-
parent_team_id = github_team.repo_team[each.key].id
5+
parent_team_id = github_team.repo_team[each.key].slug
66
name = "${each.key}-committers"
77
description = "Committers team for the ${each.key} repository"
88
privacy = "closed"
@@ -15,7 +15,7 @@ resource "github_team_members" "repo_committer_team_members" {
1515
if v.is_django_commons_repo == false && length(v.committers) > 0
1616
}
1717

18-
team_id = github_team.repo_committer_team[each.key].id
18+
team_id = github_team.repo_committer_team[each.key].slug
1919

2020
dynamic "members" {
2121
for_each = each.value.committers
@@ -34,7 +34,7 @@ resource "github_team_repository" "repo_committer_team_access" {
3434
if v.is_django_commons_repo == false
3535
}
3636
repository = each.key
37-
team_id = github_team.repo_committer_team[each.key].id
37+
team_id = github_team.repo_committer_team[each.key].slug
3838
permission = "maintain"
3939
}
4040

terraform/resources-repo-teams.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "github_team" "repo_team" {
1010
resource "github_team_members" "repo_team_members" {
1111
for_each = local.project_repositories
1212

13-
team_id = github_team.repo_team[each.key].id
13+
team_id = github_team.repo_team[each.key].slug
1414

1515
dynamic "members" {
1616
# Add the admins and committers as members because this is the parent
@@ -29,7 +29,7 @@ resource "github_team_members" "repo_team_members" {
2929
resource "github_team_repository" "repo_team_access" {
3030
for_each = local.project_repositories
3131
repository = each.key
32-
team_id = github_team.repo_team[each.key].id
32+
team_id = github_team.repo_team[each.key].slug
3333
permission = "triage"
3434
}
3535
# GitHub Team Settings Resource
@@ -45,5 +45,5 @@ resource "github_team_settings" "this" {
4545
notify = false
4646
}
4747

48-
team_id = github_team.repo_team[each.key].id
48+
team_id = github_team.repo_team[each.key].slug
4949
}

0 commit comments

Comments
 (0)