Commit 768bb0a5 authored by Marin Jankovski's avatar Marin Jankovski

On note creation create cross reference in external tracker or internal system.

parent 46b1664b
......@@ -15,10 +15,14 @@ module Notes
# Create a cross-reference note if this Note contains GFM that names an
# issue, merge request, or commit.
note.references.each do |mentioned|
if mentioned.is_a?(ExternalIssue)
note.project.issues_tracker.create_cross_reference_note
else
Note.create_cross_reference_note(mentioned, note.noteable, note.author, note.project)
end
end
end
end
note
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