bottle-github-webhook

A very simple github post-receive web hook handler

Bottle webhook for Github ######################## A very simple github post-receive web hook handler that executes per default a pull uppon receiving. The executed action is configurable per repository.

It will also verify that the POST request originated from github.com.

Gettings started

Edit repos.json to configure repositories, each repository must be registered under the form GITHUB_USER/REPOSITORY_NAME.

.. code-block:: json

{
    "razius/puppet": {
        "path": "/home/puppet",
        "action": [["git", "pull", "origin", "master"], ],
    },
    "d3non/somerandomexample/branch:live": {
        "path": "/home/exampleapp",
        "action": [["git", "pull", "origin", "live"],
            ["echo", "execute", "some", "commands", "..."] ]
    }
}

Install dependencies.

.. code-block:: console

pip install -r requirements.txt

Start the server.

.. code-block:: console

python index.py 80

Go to your repository’s settings on github.com <http://github.com>_ and register your public URL under Service Hooks -> WebHook URLs.

Related Repositories

bottle-github-webhook

bottle-github-webhook

A very simple github post-receive web hook handler ...