Giter Site home page Giter Site logo

cranehook's Introduction

cranehook

cranehook is a small webhook API application run specified command when webhook called from GitHub. It's designed to use with pelican generated website and also capable to run other tasks you need.

Status

It's in alpha state. We've just start using this program.

Only ping and pullrequest event are handled. (Even pullrequest handling is limited.)

ping event

Just response pong.

pullrequest event

When event is pullrequest and its payload have merged property as True, cranehook runs commands written on settings.py.

Usage

At first, do git clone [email protected]:sonkm3/cranehook.git to get a copy of cranehook.

Install required python modules pip install -r requirements.txt

Update settings.py as you need.

Run as web server. python cranehook.py

Webhook is waiting on this url. http://localhost:8080/ (Port can be changed by editing settings.py)

Test

Just run nosetests

Background

I and friends are making a Podcast since 2021/01. To generate website, we use pelican and GitHub to generate and manage contents, use self-hosted container due to deliver large size audio file. Because we self-host static file host server, we need some work to make it automatically updated. That's why this small program made, and that's why this program called crane hook. (At first Pelican hook came out as a name, but its usage seems much more generic, so we choose crane for name, it's kind of a bird as Pelican.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.