Webhook server sends transformed GitHub event JSON as email notifications.
As stand-alone server:
GitHubEventMailer
->loadConfig("$ENV{HOME}/etc/GitHubWebhookRequest/config.cfg")
->start();
Or as HTTP::Request
:
if ($r->isa('HTTP::Request')) {
my $httpResponse = GitHubWebhookRequest->do($r);
}
Config:
[MAIN]
DEBUG_TO = [email protected]
LISTEN = 9999
SUPPRESS_NO_JOB_ERROR = 1
TEMPLATE_PATH = ~/etc/GitHubWebhookRequest/templates/,
[PUSH_1]
event = push
from = [email protected]
template = push.tmpl
to = [email protected],[email protected]
secret = SECRET