Skip to content

Instantly share code, notes, and snippets.

@soerenmartius
Created March 5, 2020 17:35
Show Gist options
  • Save soerenmartius/7ff98525ac279a236d97d4941361e30b to your computer and use it in GitHub Desktop.
Save soerenmartius/7ff98525ac279a236d97d4941361e30b to your computer and use it in GitHub Desktop.
How to manage your GitHub Organization with Terraform - Teams
module "team_reviewers" {
source = "mineiros-io/team/github"
version = "0.1.2"
name = "Reviewers"
description = "A team of users that are mandatory for reviewing Pull Requests."
privacy = "secret"
members = [
local.member_users["[email protected]"],
local.member_users["[email protected]"]
]
maintainers = values(local.admin_users)
}
module "team_contributors" {
source = "mineiros-io/team/github"
version = "0.1.2"
name = "Contributors"
description = "A team of users that have the permission to contribute to repositories that are assigned to the team."
privacy = "secret"
members = [
local.member_users["[email protected]"],
local.member_users["[email protected]"],
local.member_users["[email protected]"]
]
maintainers = values(local.admin_users)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment