Home / Gitlab / GitLab Issues Tags
GitLab Issues Tags @ Digitec
Original Issues Labels File Location:
/home/git/gitlab/lib/gitlab/issues_labels.rb
Modified Issues Labels File Location:
/home/git/digitec/gitlab/issues_labels.rb
The file replacement will occur in post update hook on the gitlab repository.
Modified File
issues_labels.rb
module Gitlab
class IssuesLabels
class << self
def generate(project)
red = '#d9534f'
yellow = '#f0ad4e'
blue = '#428bca'
green = '#5cb85c'
black = '#34495E'
grey = '#8E44AD'
purple = '#8E44AD'
pink = '#FFECDB'
labels = [
{ title: "bug", color: red },
{ title: "can-not-reproduce", color: black },
{ title: "confirmed", color: red },
{ title: "critical", color: red },
{ title: "discussion", color: blue },
{ title: "documentation", color: yellow },
{ title: "enhancement", color: green },
{ title: "feature", color: green },
{ title: "graphics", color: blue },
{ title: "suggestion", color: blue },
{ title: "support", color: yellow },
{ title: "task", color: green },
{ title: "text-change", color: purple },
{ title: "works-as-intended", color: black },
{ title: "works-for-me", color: black },
{ title: "nice-to-have", color: blue }
]
labels.each do |label|
project.labels.create(label)
end
end
end
end
end