From fc0e28b11afd5c41dea40e35eab2260f59d87e8b Mon Sep 17 00:00:00 2001 From: tekkub Date: Thu, 15 Jul 2010 19:21:46 -0600 Subject: Space saves the day! --- _posts/2009-10-16-post-receive-hooks.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '_posts/2009-10-16-post-receive-hooks.markdown') diff --git a/_posts/2009-10-16-post-receive-hooks.markdown b/_posts/2009-10-16-post-receive-hooks.markdown index 8826423..c971a31 100644 --- a/_posts/2009-10-16-post-receive-hooks.markdown +++ b/_posts/2009-10-16-post-receive-hooks.markdown @@ -17,19 +17,19 @@ What we'll send is JSON containing information about the push and the commits in Here's the template we use in Ruby to generate the JSON: - + This is sent as a POST with a single parameter: 'payload' So, for example, you'd do something like this in a [Sinatra](http://sinatra.rubyforge.org/) server: - + The `commits` array is ordered with the most recent commit as the first element. The last element, therefor, is the oldest commit. Here's an example payload: - + For more information on this technique, see the [Web Hooks Wiki](http://webhooks.pbwiki.com/). -- cgit v1.3.1