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

import_formatter.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 72e041a90b1d59824ef958a56b11ea3bf3affd67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Gitlab
  class ImportFormatter
    def comment(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