metajack/notify-webhook — pull request #2 by BenjieGillam (2012-05-22 08:20:26+00:00)
Title: Configuration via `git config`; reversed commit order.

Sorry for the unsolicited pull request - I've done these changes for myself anyway so feel free to ignore them/delete this pull request. If you do accept it then I am happy for you to later re-release my changes under an MIT or BSD license (possibly more appropriate than GPLv3?).

Using `git config` allows you to share the same script across multiple repositories and have them configured individually. This is especially useful if you are using [gitolite hooks][gitolite] or similar, and makes updating the script easier as you don't have to keep re-implementing the configuration variables. I've also implemented a number of sensible defaults - see the [README][] for details.

I've also taken the liberty of reversing the commit order to make it more consistent with GitHub's webhooks ([see example][example]).

My python-fu is very weak, so I definitely won't take offence if you rewrite some (or all) of it, or if you want to give me a few helpful pointers and have me rewrite it.

[gitolite]: http://sitaramc.github.com/gitolite/cust.html#hooks
[README]: https://github.com/BenjieGillam/notify-webhook/blob/master/README.markdown
[example]: https://github.com/p-im/webhook-templates/blob/master/samples/github.multiple-commits.json