'Generate default set of labels' should use labels from admin settings
Summary
When creating a new set of labels in an existing project, default GitLab labels are created instead instead of the ones configured in admin settings. When creating a new project, it works as expected.
Steps to reproduce
- Go to
/<user>/<project>/labels
. - Remove all labels, if existing.
- Click the
generate
link.
The labels bug
, confirmed
, critical
, etc. are created. See lib/gitlab/issues_labels.rb.
Expected behavior
Create labels from admin configuration (/admin/labels
).
Possible fixes
Generate the labels the same way as on project creation.