Class: Anchorman::CommitFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/anchorman/commit_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(commit) ⇒ Object



4
5
6
7
8
9
# File 'lib/anchorman/commit_formatter.rb', line 4

def format(commit)
  note =  "* #{format_message(commit.message)}\n"
  note << "    * SHA: #{commit.sha}\n"
  note << "    * #{commit.author.name}, #{commit.author.email}\n"
  note
end