Skip to content
This repository
Browse code

Use the lookup table for authors

  • Loading branch information...
commit 6ad35d857791e2439edee186405895b75e33f9fd 1 parent 425b0f9
Richo Healey authored April 26, 2012
3  lib/irc_machine/plugin/github_jenkins.rb
@@ -118,6 +118,7 @@ def defaultParams(repo)
118 118
   def format_msg(commit, build)
119 119
      build_time = Time.now.to_i - commit.start_time
120 120
      commit = commit.commit
121  
-    "Build of #{commit.repo_name}/#{commit.branch} was a #{build.status} #{commit.repository.url}/compare/#{commit.before[0..6]}...#{commit.after[0..6]} in #{build_time}s PING #{commit.author_usernames.join(" ")}"
  121
+     authors = commit.author_usernames.map { |a| get_nick(a) }
  122
+    "Build of #{commit.repo_name}/#{commit.branch} was a #{build.status} #{commit.repository.url}/compare/#{commit.before[0..6]}...#{commit.after[0..6]} in #{build_time}s PING #{authors.join(" ")}"
122 123
   end
123 124
 end

0 notes on commit 6ad35d8

Please sign in to comment.
Something went wrong with that request. Please try again.