更改默认问题标签 [英] changing the default issue labels
问题描述
我想更改默认的问题标签.我尝试修改lib/gitlab/issues_labels.rb中的代码,我认为这是生成默认标签的地方.但是那实际上没有用.有谁知道如何更改为项目创建的默认标签?
I want to change the default issue labels. I tried modifying the code in the lib/gitlab/issues_labels.rb which I thought was where it was generating the default labels. however that didn't actually work. Does anyone know how to change the default labels that are created for a project?
推荐答案
Gitlab 5.2.0(5月2013)引入了为问题生成默认标签集的能力".
Gitlab 5.2.0 (May 2013) introduced the "Ability to generate default labels set for issues".
它来自提交71647fd ,并带有
It comes from commit 71647fd, with issues_labels.rb
labels = important_labels + warning_labels + neutral_labels + positive_labels
project.issues_default_label_list = labels
因此修改这些标签 lib/gitlab/issues_labels.rb
确实应该是正确的解决方案,但是您可能必须完全停止/重新启动Gitlab实例才能看到更改,因为可以在启动Gitlab时设置它们,而以后不能修改(即使代码更改了).
So modifying those labels lib/gitlab/issues_labels.rb
should indeed be the right solution, but you might have to completely stop/restart your Gitlab instance in order to see the changes, because they could be set when launching Gitlab, and not modified later (even if the code changes)..
这篇关于更改默认问题标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!