Files
opentf/website/source/docs/providers/github/r/team_repository.html.markdown
Jacob Severson c1b373ad5f Add Github Organization provider.
Allows for managing organization membership, teams, team membership, and
team repositories.
2016-03-08 23:06:30 +01:00

1.1 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
github Github: github_team_repository docs-github-resource-team-repository Provides a Github team repository resource.

github_team_repository

Provides a Github team repository resource.

This resource allows you to add/remove repositories from teams in your organization. When applied, the repository will be added to the team. When destroyed, the repository will be removed from the team.

Example Usage

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

resource "github_team_repository" "some_team_repo" {
	team_id = "${github_team.some_team.id}"
	repository = "our-repo"
	permission = "pull"
}

Argument Reference

The following arguments are supported:

  • team_id - (Required) The Github team id
  • repository - (Required) The repository to add to the team.
  • permission - (Optional) The permissions of team members regarding the repository. Must be one of pull, push, or admin. Defaults to pull.