Class: Gitlab::ImportFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/import_formatter.rb

Instance Method Summary collapse

Instance Method Details

#assignee_line(assignee) ⇒ Object



18
19
20
21
# File 'lib/gitlab/import_formatter.rb', line 18

def assignee_line(assignee)
  assignee ||= "Anonymous"
  "*Assigned to: #{assignee}*\n\n"
end

#author_line(author) ⇒ Object



13
14
15
16
# File 'lib/gitlab/import_formatter.rb', line 13

def author_line(author)
  author ||= "Anonymous"
  "*Created by: #{author}*\n\n"
end

#comment(author, date, body) ⇒ Object



5
6
7
# File 'lib/gitlab/import_formatter.rb', line 5

def comment(author, date, body)
  "\n\n*By #{author} on #{date}*\n\n#{body}"
end

#comments_headerObject



9
10
11
# File 'lib/gitlab/import_formatter.rb', line 9

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