mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
15 lines
304 B
Ruby
15 lines
304 B
Ruby
module Gitlab
|
|
class ImportFormatter
|
|
def comment_to_md(author, date, body)
|
|
"\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
|
|
end |