diff options
| author | tekkub <tekkub@gmail.com> | 2010-07-15 19:21:46 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2010-07-15 19:21:46 -0600 |
| commit | fc0e28b11afd5c41dea40e35eab2260f59d87e8b (patch) | |
| tree | aa3733a480ed7ec35040ea3dcc37917d4809836f /_posts/2009-10-16-post-receive-hooks.markdown | |
| parent | 8bb4333a5ea527cc9b53edf509bb9f7c25e42350 (diff) | |
Space saves the day!
Diffstat (limited to '_posts/2009-10-16-post-receive-hooks.markdown')
| -rw-r--r-- | _posts/2009-10-16-post-receive-hooks.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
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: -<script src="http://gist.github.com/212213.js"></script> +<script src="http://gist.github.com/212213.js"> </script> 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: -<script src="http://gist.github.com/212212.js"></script> +<script src="http://gist.github.com/212212.js"> </script> 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: -<script src="http://gist.github.com/212211.js"></script> +<script src="http://gist.github.com/212211.js"> </script> For more information on this technique, see the [Web Hooks Wiki](http://webhooks.pbwiki.com/). |
