bottle-github-webhook

A very simple github post-receive web hook handler

2 years after

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

mocktailsmixer

mocktailsmixer

Make a DIY Robotic Mocktails Mixer Powered by the Google Assistant SDK ...

heroku-node-telegram-bot

heroku-node-telegram-bot

Starter pack for running telegram bot on the Heroku using Node.js ...

GHA

GHA

GitHub Announcer for IRC ...