Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-18 07:42:07 +0300
committerStan Hu <stanhu@gmail.com>2018-07-18 07:42:07 +0300
commita19a5b57e464e53ad6e92c69f1e16f7cc0b27718 (patch)
treeaeeef4af9cee40e4618297384ec03b291481300f /lib/gitlab/bitbucket_server_import
parentd1afb7c9e50399d4f7f397d1e3be2df13d49427e (diff)
Improve formatting of diff notes that could not be imported
Diffstat (limited to 'lib/gitlab/bitbucket_server_import')
-rw-r--r--lib/gitlab/bitbucket_server_import/importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/bitbucket_server_import/importer.rb b/lib/gitlab/bitbucket_server_import/importer.rb
index 93fa7a0f4d4..3db3ebfc80a 100644
--- a/lib/gitlab/bitbucket_server_import/importer.rb
+++ b/lib/gitlab/bitbucket_server_import/importer.rb
@@ -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