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
%i(user label issue merge_request snippet commit commit_range).each do |type|
define_method("#{type}s") do
if type == :issue && project.jira_tracker?
pipeline_result(:external_issue)
else
references[type]
end
references[type]
end
end
def issues
if project.jira_tracker?
references[:external_issue]
else
references[:issue]
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