Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.6 kb
class Service::FriendFeed < Service
string :nickname, :remotekey
white_list :nickname
def receive_push
repository = payload['repository']['name']
friendfeed_url = "http://friendfeed.com/api/share"
payload['commits'].each do |commit|
title = "#{commit['author']['name']} just committed a change to #{repository} on GitHub"
comment = "#{commit['message']} (#{commit['id']})"
http.basic_auth data['nickname'], data['remotekey']
http_post friendfeed_url,
:title => title, :link => commit['url'], :comment => comment, :via => :github
end
end
end
Jump to Line
Something went wrong with that request. Please try again.