Skip to content

Commit ad1a14d

Browse files
committed
Remove unneeded resources from example as it leaves spurious invitations
when adding a user to a team that is not member of the organization, the user will be invited to the organization. when removing the member again from the team the invitation will still be outstanding and not removed during terraform destroy.
1 parent dea2911 commit ad1a14d

File tree

1 file changed

+2
-11
lines changed
  • examples/public-repository-complete-example

1 file changed

+2
-11
lines changed

examples/public-repository-complete-example/main.tf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,10 @@ resource "github_team" "team" {
169169

170170
# ---------------------------------------------------------------------------------------------------------------------
171171
# TEAM MEMBERSHIP
172-
# We are adding two members to this team. terraform-test-user-1 and terraform-test-user-2 which are both existing users
173-
# and already members of the GitHub Organization terraform-test that is an Organization managed by Mineiros.io to run
174-
# integration tests with Terragrunt.
172+
# We are adding one members to this team for testing branch restrictions
173+
# terraform-test-user is permanent normal member of the test organization
175174
# ---------------------------------------------------------------------------------------------------------------------
176175

177-
resource "github_team_membership" "team_membership" {
178-
count = 2
179-
180-
team_id = github_team.team.id
181-
username = "terraform-test-user-${count.index + 1}"
182-
role = "member"
183-
}
184-
185176
resource "github_team_membership" "team_membership_permanent" {
186177
team_id = github_team.team.id
187178
username = "terraform-test-user"

0 commit comments

Comments
 (0)