Files
opentf/website/source/docs/providers/github/r/team_repository.html.markdown
Seth Vargo 4fde3b2be9 Capitalize the H in GitHub
GitHub really doesn't like when you make the H lowercase, it violates
their brand guidelines and they won't help promote anything that doesn't
use the capital H.
2016-04-07 10:26:01 -04: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.