1. 问题
gitlab 中 some-project > Issues > Labels > “Generate a default set of labels”
点击可以生成一系列的label
如何自定义这些 labels 呢?
2. 解决
-
修改 gitlab/lib/gitlab/issues_labels.rb
在 labels 数组里面新增就好拉!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
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: "discuss