github_repository_topics

This resource allows you to create and manage topics for repositories within your GitHub organization or personal account.

Example Usage

data "github_repository" "test" {
    name = "test"
}

resource "github_repository_topics" "test" {
    repository    = github_repository.test.name
    topics        = ["topic-1", "topic-2"]
}

Argument Reference

The following arguments are supported:

Import

Repository topics can be imported using the name of the repository.

$ terraform import github_repository_topics.terraform terraform