Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 573 Bytes
service :rubyforge do |data, payload|
repository = payload['repository']['name']
branch = payload['ref_name']
payload['commits'].each do |commit|
id = commit['id']
rf = RubyForge.new(data['username'], data['password'])
group_id = data['groupid']
subject = "Commit Notification (#{repository}/#{branch}): #{id}"
body = "`#{commit['message']}`, pushed by #{commit['author']['name']} (#{commit['author']['email']}). View more details for this change at #{commit['url']}."
rf.post_news(group_id, subject, body)
end
end