Skip to content

Instantly share code, notes, and snippets.

@zonque
Created January 29, 2016 10:37
Show Gist options
  • Select an option

  • Save zonque/b85afc1a1b27ff5f6650 to your computer and use it in GitHub Desktop.

Select an option

Save zonque/b85afc1a1b27ff5f6650 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'json'
require 'sinatra'
require 'awesome_print'
post '/github_webhook' do
request.body.rewind
content = request.body.read
awesome_print JSON.parse(content)
"Thanks."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment