FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

github_team_repository

This resource manages relationships between teams and repositories in your Github organization.

Creating this resource grants a particular team permissions on a particular repository.

The repository and the team must both belong to the same organization on Github. This resource does not actually create any repositories; to do that, see github_repository.

Example Usage

# Add a repository to the team
resource "github_team" "some_team" {
  name        = "SomeTeam"
  description = "Some cool team"
}

resource "github_repository" "some_repo" {
  name = "some-repo"
}

resource "github_team_repository" "some_team_repo" {
  team_id    = "${github_team.some_team.id}"
  repository = "${github_repository.some_repo.name}"
  permission = "pull"
}

Argument Reference

The following arguments are supported:


See the source of this document at Terraform.io