File tree 5 files changed +131
-130
lines changed
5 files changed +131
-130
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ terraform {
5
5
required_providers {
6
6
github = {
7
7
source = " integrations/github"
8
+ version = " 6.3.1"
8
9
}
9
10
}
10
11
}
Original file line number Diff line number Diff line change 2
2
resource "github_team" "repo_admin_team" {
3
3
for_each = local. project_repositories
4
4
5
- parent_team_id = github_team. repo_team [each . key ]. id
5
+ parent_team_id = github_team. repo_team [each . key ]. slug
6
6
name = " ${ each . key } -admins"
7
7
description = " Admin team for the ${ each . key } repository"
8
8
privacy = " closed"
@@ -12,7 +12,7 @@ resource "github_team" "repo_admin_team" {
12
12
resource "github_team_members" "repo_admin_members" {
13
13
for_each = local. project_repositories
14
14
15
- team_id = github_team. repo_admin_team [each . key ]. id
15
+ team_id = github_team. repo_admin_team [each . key ]. slug
16
16
17
17
dynamic "members" {
18
18
for_each = each. value . admins
@@ -28,6 +28,6 @@ resource "github_team_members" "repo_admin_members" {
28
28
resource "github_team_repository" "repo_admin_team_access" {
29
29
for_each = local. project_repositories
30
30
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
32
32
permission = " admin"
33
33
}
Original file line number Diff line number Diff line change 2
2
resource "github_team" "repo_committer_team" {
3
3
for_each = local. project_repositories
4
4
5
- parent_team_id = github_team. repo_team [each . key ]. id
5
+ parent_team_id = github_team. repo_team [each . key ]. slug
6
6
name = " ${ each . key } -committers"
7
7
description = " Committers team for the ${ each . key } repository"
8
8
privacy = " closed"
@@ -15,7 +15,7 @@ resource "github_team_members" "repo_committer_team_members" {
15
15
if v . is_django_commons_repo == false && length (v. committers ) > 0
16
16
}
17
17
18
- team_id = github_team. repo_committer_team [each . key ]. id
18
+ team_id = github_team. repo_committer_team [each . key ]. slug
19
19
20
20
dynamic "members" {
21
21
for_each = each. value . committers
@@ -34,7 +34,7 @@ resource "github_team_repository" "repo_committer_team_access" {
34
34
if v . is_django_commons_repo == false
35
35
}
36
36
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
38
38
permission = " maintain"
39
39
}
40
40
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ resource "github_team" "repo_team" {
10
10
resource "github_team_members" "repo_team_members" {
11
11
for_each = local. project_repositories
12
12
13
- team_id = github_team. repo_team [each . key ]. id
13
+ team_id = github_team. repo_team [each . key ]. slug
14
14
15
15
dynamic "members" {
16
16
# Add the admins and committers as members because this is the parent
@@ -29,7 +29,7 @@ resource "github_team_members" "repo_team_members" {
29
29
resource "github_team_repository" "repo_team_access" {
30
30
for_each = local. project_repositories
31
31
repository = each. key
32
- team_id = github_team. repo_team [each . key ]. id
32
+ team_id = github_team. repo_team [each . key ]. slug
33
33
permission = " triage"
34
34
}
35
35
# GitHub Team Settings Resource
@@ -45,5 +45,5 @@ resource "github_team_settings" "this" {
45
45
notify = false
46
46
}
47
47
48
- team_id = github_team. repo_team [each . key ]. id
48
+ team_id = github_team. repo_team [each . key ]. slug
49
49
}
You can’t perform that action at this time.
0 commit comments