Commit a19a5b57 authored by Stan Hu's avatar Stan Hu

Improve formatting of diff notes that could not be imported

parent d1afb7c9
......@@ -251,7 +251,7 @@ module Gitlab
def create_fallback_diff_note(merge_request, comment)
attributes = pull_request_comment_attributes(comment)
attributes[:note] = "Comment on file: #{comment.file_path}, old position: #{comment.old_pos}, new_position: #{comment.new_pos}\n\n" + attributes[:note]
attributes[:note] = "*Comment on file: #{comment.file_path}, old line: #{comment.old_pos}, new line: #{comment.new_pos}*\n\n" + attributes[:note]
merge_request.notes.create!(attributes)
end
......
......@@ -199,7 +199,7 @@ describe Gitlab::BitbucketServerImport::Importer do
expect(merge_request.notes.count).to eq(1)
note = merge_request.notes.first
expect(note.note).to start_with('Comment on file:')
expect(note.note).to start_with('*Comment on file:')
end
it 'restores branches of inaccessible SHAs' do
......
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