The gitlab_group_label
resource allows to manage the lifecycle of labels within a group.
Upstream API: GitLab REST API docs
resource "gitlab_group_label" "fixme" {
group = "example"
name = "fixme"
description = "issue with failing tests"
color = "#ffcc00"
}
color
(String) The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the CSS color names.group
(String) The name or id of the group to add the label to.name
(String) The name of the label.description
(String) The description of the label.id
(String) The ID of this resource.label_id
(Number) The id of the group label.Import is supported using the following syntax:
# Gitlab group labels can be imported using an id made up of `{group_id}:{group_label_id}`, e.g.
terraform import gitlab_group_label.example 12345:fixme