Created
January 29, 2016 10:37
-
-
Save zonque/b85afc1a1b27ff5f6650 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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