Captain Hook is a webhook server for running scripts via webhooks from Github or Gitea. Powered by Flask.
Charles Reid 22151c99e2 modify logging err 2 months ago
docs update docs, fix typos, flesh out 2 months ago
hooks clean up logging in hook script 3 months ago
mkdocs-material @ b0c6890853 Update mkdocs-material for mkdocs 1.0 10 months ago
.gitignore prepare for mkdocs 1 year ago
.gitmodules add mkdocs material git submodule 1 year ago
Dockerfile python2 -> python3 alpine 11 months ago update howto debugging with some ideas 1 year ago
LICENSE add original license 11 months ago update docs, fix typos, flesh out 2 months ago add all new branch 1 year ago modify logging err 2 months ago
config.example.json update config examples and fix whitelist ip exception 1 year ago
docker-compose.yml Change mount point for hooks - less confusing. 1 year ago
mkdocs.yml amber not orange 2 months ago
requirements.txt update requirements: flask and requests 11 months ago


Captain hook is a Python WSGI application that handles webhooks from gitea and github.

Captain Hook documentation:

Browse the documentation locally: docs/

Captain Hook source code:

Captain Hook on Github:

git clone
cd b-captain-hook
pip install -r requirements.txt
cp config.example.json config.json
# edit config.json

Run it standalone:


Run it with docker:

docker-compose build
docker-compose up -d
docker-compose down




This project is just the reinterpretation and merge of two approaches:



It is implemented with the help of python 3 alpine: