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