Skip to content

Commit

Permalink
Update for github JSON payload change http://github.com/guides/post-r…
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Sierles authored and Joshua Sierles committed Jul 31, 2008
1 parent c869b95 commit 839fb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irc_cat/http_server/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def process(request, response)
post = CGI.parse(request.body.read)
json = JSON.parse(post['payload'].join(','))
json['commits'].each do |c|
@bot.say(@config['irc']['channel'],"[#{json['repository']['name']}] New commit by #{c.last['author']['name']} : #{c.last['message'].gsub(/\n(.*)/, '...')} - #{c.last['url']}")
@bot.say(@config['irc']['channel'],"[#{json['repository']['name']}] New commit by #{c['author']['name']} : #{c['message'].gsub(/\n(.*)/, '...')} - #{c['url']}")
end
end
end
Expand Down

0 comments on commit 839fb28

Please sign in to comment.