metajack / notify-webhook
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
b572cc5
| name | age | message | |
|---|---|---|---|
| |
LICENSE.txt | Fri Dec 05 00:39:37 -0800 2008 | |
| |
README.markdown | Fri Dec 05 00:46:01 -0800 2008 | |
| |
notify-webhook.py | Mon May 04 21:31:02 -0700 2009 |
README.markdown
notify-webhook
notify-webhook is a git post-receive hook script that posts JSON data to a web hook capable server.
This implements the GitHub Web hooks API as closely as possible. It allows arbitrary git repositories to use Web hook capable services.
As an example, this script works very well with commitbot which sends commit notifications to XMPP group chat rooms.
License
This code is copyright (c) 2008 by Jack Moffitt jack@metajack.im and
is available under the GPLv3.
See LICENSE.txt for details.
Dependencies
Usage
To use notify-webhook, just copy notify-webhook.py to your
repository's .git/hooks dir and call it post-receive. Be sure to
set it executable with chmod 755 post-receive as well.
You'll need to edit the very top of the file where the constants are
defined.
POST_URLis the URL of the web hook serverREPO_URLis the URL of your repository browserCOMMIT_URLis the URL of a commit in your respository browser. '%s' in this string will be replaced with the SHA1 hash.REPO_NAMEis the name of the repositoryREPO_OWNER_NAMEis name of the repository ownerREPO_OWNER_EMAILis the repository owner's e-mail addressREPO_DESCis the repository description
