Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (29 sloc) 1.18 KB
layout page_title sidebar_current description
GitLab: gitlab_label
Creates and manages labels for GitLab projects


This resource allows you to create and manage labels for your GitLab projects. For further information on labels, consult the gitlab documentation.

Example Usage

resource "gitlab_label" "fixme" {
  project     = "example"
  name        = "fixme"
  description = "issue with failing tests"
  color       = "#ffcc00"

Argument Reference

The following arguments are supported:

  • project - (Required) The name or id of the project to add the label to.

  • name - (Required) The name of the label.

  • color - (Required) The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the CSS color names.

  • description - (Optional) The description of the label.

Attributes Reference

The resource exports the following attributes:

  • id - The unique id assigned to the label by the GitLab server (the name of the label).
You can’t perform that action at this time.