mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-27 02:02:35 -05:00
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.
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.