gitlab-org--gitlab-foss/lib/gitlab/issues_labels.rb
Ben Bodenmiller 3e55d56c90 remove feature label
For automatic label generation remove label `feature` as it is basically means the same thing as label `enhancement`.
2014-10-31 17:22:16 -07:00

27 lines
700 B
Ruby

module Gitlab
class IssuesLabels
class << self
def generate(project)
red = '#d9534f'
yellow = '#f0ad4e'
blue = '#428bca'
green = '#5cb85c'
labels = [
{ title: "bug", color: red },
{ title: "critical", color: red },
{ title: "confirmed", color: red },
{ title: "documentation", color: yellow },
{ title: "support", color: yellow },
{ title: "discussion", color: blue },
{ title: "suggestion", color: blue },
{ title: "enhancement", color: green }
]
labels.each do |label|
project.labels.create(label)
end
end
end
end
end