Commit 37a14ea4 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'always_use_external_tracker_to_cross_reference_external' into 'master'

Always use external tracker to cross reference external issues

See merge request gitlab-org/gitlab!33263
parents 7f696037 6b2c3124
...@@ -128,7 +128,7 @@ module SystemNotes ...@@ -128,7 +128,7 @@ module SystemNotes
body = cross_reference_note_content(gfm_reference) body = cross_reference_note_content(gfm_reference)
if noteable.is_a?(ExternalIssue) if noteable.is_a?(ExternalIssue)
noteable.project.issues_tracker.create_cross_reference_note(noteable, mentioner, author) noteable.project.external_issue_tracker.create_cross_reference_note(noteable, mentioner, author)
else else
create_note(NoteSummary.new(noteable, noteable.project, author, body, action: 'cross_reference')) create_note(NoteSummary.new(noteable, noteable.project, author, body, action: 'cross_reference'))
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