GitHub provides webhooks as a way to be notified when a particular event
happens. They’re used for all kinds of integrations and they make it easy
to automate tasks based on user actions.
In an effort to automate all sorts of tasks for the Jekyll project,
I created a little server which accepts webhooks and performs actions. In
an effort to think ahead, I created a framework for getting up and running
with webhooks quickly and easily. The details of event type and accepting
the webhook and firing off the appropriate actions is all taken care of.
Every action you write has the following signature:
This makes it very easy to construct actions, and to allow them to accept
multiple inputs. For example:
If you want to spin up a web server, no problem! hooks.GlobalHandler
Check out the README for auto-reply if you’re
interested in learning more about how you can use this tool for your
auto-reply is licensed under the MIT License, copyright Parker Moore.