Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (12 sloc) 0.395 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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 "https://kanbanery.com/api/v1/projects/#{project_id}/git_commits",
      payload.to_json,
      'X-Kanbanery-ProjectGitHubToken' => token,
      'Content-Type' => 'application/json'
  end
end
Something went wrong with that request. Please try again.