import_formatter.rb 346 Bytes
Newer Older
1 2
# frozen_string_literal: true

3 4
module Gitlab
  class ImportFormatter
Douwe Maan's avatar
Douwe Maan committed
5
    def comment(author, date, body)
6 7 8 9 10 11 12
      "\n\n*By #{author} on #{date}*\n\n#{body}"
    end

    def comments_header
      "\n\n\n**Imported comments:**\n"
    end

13
    def author_line(author)
14
      author ||= "Anonymous"
15
      "*Created by: #{author}*\n\n"
16 17
    end
  end
Valery Sizov's avatar
Valery Sizov committed
18
end