github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/website/source/docs/providers/github/r/team_repository.html.markdown (about)

     1  ---
     2  layout: "github"
     3  page_title: "GitHub: github_team_repository"
     4  sidebar_current: "docs-github-resource-team-repository"
     5  description: |-
     6    Provides a GitHub team repository resource.
     7  ---
     8  
     9  # github\_team_repository
    10  
    11  Provides a GitHub team repository resource.
    12  
    13  This resource allows you to add/remove repositories from teams in your organization. When applied,
    14  the repository will be added to the team. When destroyed, the repository will be removed from the team.
    15  
    16  ## Example Usage
    17  
    18  ```
    19  # Add a repository to the team
    20  resource "github_team" "some_team" {
    21      name = "SomeTeam"
    22      description = "Some cool team"
    23  }
    24  
    25  resource "github_team_repository" "some_team_repo" {
    26  	team_id = "${github_team.some_team.id}"
    27  	repository = "our-repo"
    28  	permission = "pull"
    29  }
    30  ```
    31  
    32  ## Argument Reference
    33  
    34  The following arguments are supported:
    35  
    36  * `team_id` - (Required) The GitHub team id
    37  * `repository` - (Required) The repository to add to the team.
    38  * `permission` - (Optional) The permissions of team members regarding the repository. 
    39                    Must be one of `pull`, `push`, or `admin`. Defaults to `pull`.