This resource allows you to create and manage topics for repositories within your GitHub organization or personal account.
data "github_repository" "test" {
name = "test"
}
resource "github_repository_topics" "test" {
repository = github_repository.test.name
topics = ["topic-1", "topic-2"]
}
The following arguments are supported:
repository
- (Required) The repository name.
topics
- (Required) A list of topics to add to the repository.
Repository topics can be imported using the name
of the repository.
$ terraform import github_repository_topics.terraform terraform