2015-02-02 20:01:07 -05:00
|
|
|
module Gitlab
|
|
|
|
class ImportFormatter
|
2015-02-17 10:59:50 -05:00
|
|
|
def comment(author, date, body)
|
2015-02-02 20:01:07 -05:00
|
|
|
"\n\n*By #{author} on #{date}*\n\n#{body}"
|
|
|
|
end
|
|
|
|
|
|
|
|
def comments_header
|
|
|
|
"\n\n\n**Imported comments:**\n"
|
|
|
|
end
|
|
|
|
|
|
|
|
def author_line(author, body)
|
|
|
|
"*Created by: #{author}*\n\n#{body}"
|
|
|
|
end
|
|
|
|
end
|
2015-02-03 12:42:56 -05:00
|
|
|
end
|