Skip to content

blha303/flask-github-webhook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask webhook for Github

A very simple github post-receive web hook handler that executes a pull uppon receiving.

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.

{
    "razius/puppet": {
        "path": "/home/puppet"
    }
}

Install dependencies.

pip install -r requirements.txt

Start the server.

python index.py 80

Go to your repository's settings on github.com and register your public URL under Service Hooks -> WebHook URLs.

About

A very simple github post-receive web hook handler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%