soldemuth / GitHub-Event-Mailer

Webhook server sends transformed GitHub event JSON as email notifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub-Event-Mailer

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              = sdemuth@fairbanksllc.com
LISTEN                = 9999
SUPPRESS_NO_JOB_ERROR = 1
TEMPLATE_PATH         = ~/etc/GitHubWebhookRequest/templates/,

[PUSH_1]
event    = push
from     = from@address.com
template = push.tmpl
to       = to_1@address.com,to_2@address.com
secret   = SECRET

About

Webhook server sends transformed GitHub event JSON as email notifications.


Languages

Language:Perl 100.0%