Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Git post-receive web hook notifier in Python.
branch: master

This branch is 39 commits behind metajack:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE.txt
README.markdown
notify-webhook.py

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_URL is the URL of the web hook server
  • REPO_URL is the URL of your repository browser
  • COMMIT_URL is the URL of a commit in your respository browser. '%s' in this string will be replaced with the SHA1 hash.
  • REPO_NAME is the name of the repository
  • REPO_OWNER_NAME is name of the repository owner
  • REPO_OWNER_EMAIL is the repository owner's e-mail address
  • REPO_DESC is the repository description
Something went wrong with that request. Please try again.