mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-24 11:02:03 -04:00
Allows for managing organization membership, teams, team membership, and team repositories.
1.1 KiB
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 idrepository- (Required) The repository to add to the team.permission- (Optional) The permissions of team members regarding the repository. Must be one ofpull,push, oradmin. Defaults topull.