Files
opentf/website/source/docs/providers/github/r/issue_label.html.markdown
Ian L f584d53ba9 provider/github: add GitHub labels resource (#10142)
* provider/github: add GitHub labels resource

Provides a GitHub issue label resource.

This resource allows easy management of issue labels for an
organisation's repositories. A name, and a color can be set.
These attributes can be updated without creating a new resource.

* provider/github: add documentation for GitHub issue labels resource
2016-11-18 13:24:37 +02:00

780 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
github GitHub: github_issue_label docs-github-resource-issue-label Provides a GitHub issue label resource.

github_issue_label

Provides a GitHub issue label resource.

This resource allows you to create and manage issue labels within your Github organization.

Example Usage

# Create a new, red colored label
resource "github_issue_label" "test_repo" {
  repository = "test-repo"
  name       = "Urgent"
  color      = "FF0000"
}

Argument Reference

The following arguments are supported:

  • repository - (Required) The GitHub repository
  • name - (Required) The name of the label.
  • color - (Required) A 6 character hex code, without the leading #, identifying the color of the label.