Skip to content

Terraform module that allows to create github team

Notifications You must be signed in to change notification settings

masterborn/terraform-github-default-team

Repository files navigation

terraform-github-default-team

Resource that allows to declare github teams for repository.

Requirements

Name Version
terraform >= 0.13
github < 5.0

Providers

Name Version
github < 5.0

Resources

Name Type
github_team.team resource
github_team.team-admins resource
github_team.team-data-science resource
github_team.team-developers resource
github_team.team-developers-backend resource
github_team.team-developers-devops resource
github_team.team-developers-frontend resource
github_team.team-developers-mobile resource
github_team.team-testers resource
github_team.team-visitors resource
github_team_membership.admin-membership resource
github_team_membership.backend-membership resource
github_team_membership.data-science-membership resource
github_team_membership.devops-membership resource
github_team_membership.frontend-membership resource
github_team_membership.mobile-membership resource
github_team_membership.tester-membership resource
github_team_membership.visitor-membership resource

Inputs

Name Description Type Default Required
project_code_name Codename of project any n/a yes
admin_members Admin team members list(string) [] no
visiting_members Visitors team members list(string) [] no
tester_members Tester team members list(string) [] no
backend_members BackEnd team members list(string) [] no
frontend_members FrontEnd team members list(string) [] no
devops_members DevOps team members list(string) [] no
mobile_members Mobile team members list(string) [] no
data_science_members Data Science team members list(string) [] no

Outputs

Name Description
main_id Team of all repository members
admins_id Team of repository administrators
data_science_id Data science repository team
visitors_id Repository visitor team
testers_id Repository testing team
developers_id Team of all developers in the repository (frontent, backend, devops and mobile developers)
developers_frontend_id Team of front-end developers in the repository
developers_backend_id Team of back-end developers in the repository
developers_mobile_id Team of mobile developers in the repository
developers_devops_id Team of devops in the repository

Examples

Basic example

module "team" {
  source = "[email protected]:masterborn/terraform-github-default-team.git?ref=v1.0.0"

  project_code_name    = "some-repository-name"
  admin_members        = ["john-doe"]
  backend_members      = ["jan-kowalski"]
  frontend_members     = ["jan-kowalski", "john-doe"]
  data_science_members = ["github-data-science-member-name"]
  tester_members       = ["github-tester-member-name"]
  visiting_members     = ["visitor-name"]
}

Enabling pre-commit hooks

Following pre-commit hooks are provided:

Requirements

Installation

To install pre-commit check .

pre-commit install

About

Terraform module that allows to create github team

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages