Skip to content

Commit

Permalink
Use the commit's author.
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Jan 7, 2012
1 parent ba1d79a commit 6fb3918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def commit_text(commit)

timestamp = Date.parse(commit['timestamp'])

commit_author = "#{author['name']} <#{author['email']}>"
commit_author = "#{commit['author']['name']} <#{commit['author']['email']}>"

text = align(<<-EOH)
Commit: #{gitsha}
Expand Down Expand Up @@ -169,7 +169,7 @@ def send_from_author?
def author_address
"#{author_name} <#{author_email}>"
end

def author
commit = last_commit || {}
commit['author'] || commit['committer'] || payload['pusher']
Expand Down

0 comments on commit 6fb3918

Please sign in to comment.