tentahook v0.1.1 Tentahook
Elixir handler for GitHub Webhooks.
Your module must have use Tentahook
clause and implement all callbacks from
Tentahook.Callbacks
. Then you can start it via start_link/2
.
Summary
Functions
Resets Tentahook configuration.
Parameters
- tehntahook_opts - new Tentahook options
Supported tehntahook_opts are the same as in start_link/2
and handler
is
also mandatory here (and yes, it can change).
Returns :ok
Starts Tentahook in current supervision tree.
Parameters
- tehntahook_opts - Tentahook options
- cowboy_opts - Cowboy options
Supported Tentahook options:
- handler - mandatory, handler which implements
handle_webhook
callback - secrets - list of GitHub secrets
- unsafe - set this to
true
and secrets to[]
if you don’t want to validate incoming payloads.
It will return the same values as
Supervisor.start_link
.