Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 394 Bytes
class Service::Kanbanery < Service
string :project_id, :project_token
white_list :project_id
def receive_push
project_id = data['project_id']
token = data['project_token']
http_post "http://kanbanery.com/api/v1/projects/#{project_id}/git_commits",
payload.to_json,
'X-Kanbanery-ProjectGitHubToken' => token,
'Content-Type' => 'application/json'
end
end