Commit 4bed25b1 authored by Douwe Maan's avatar Douwe Maan

Move reference extractor EE special case to separate method.

parent 1fb74b92
...@@ -15,11 +15,15 @@ module Gitlab ...@@ -15,11 +15,15 @@ module Gitlab
%i(user label issue merge_request snippet commit commit_range).each do |type| %i(user label issue merge_request snippet commit commit_range).each do |type|
define_method("#{type}s") do define_method("#{type}s") do
if type == :issue && project.jira_tracker? references[type]
pipeline_result(:external_issue) end
else end
references[type]
end def issues
if project.jira_tracker?
references[:external_issue]
else
references[:issue]
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment