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

Move reference extractor EE special case to separate method.

parent 1fb74b92
...@@ -15,12 +15,16 @@ module Gitlab ...@@ -15,12 +15,16 @@ 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?
pipeline_result(:external_issue)
else
references[type] references[type]
end end
end end
def issues
if project.jira_tracker?
references[:external_issue]
else
references[:issue]
end
end end
private private
......
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