code_corps v0.0.1 CodeCorps.GitHub.Event.Handler behaviour View Source
Default behavior for all GitHub webhook event handlers.
Link to this section Summary
Callbacks
The only entry point a GitHub webhook event handler function should contain
Link to this section Callbacks
Link to this callback
handle(map)
View Source
handle(map()) ::
{:ok, any()} |
{:error, atom()} |
{:error, atom(), any()}
The only entry point a GitHub webhook event handler function should contain.
Receives the GitHub payload, returns an :ok tuple if the process was
successful, or an :error tuple, where the second element is an atom, if it
failed.