NAME

Github::Hooks::Receiver::Declare - DSL interface of Github::Hooks::Receiver

SYNOPSIS

use Github::Hooks::Receiver::Declare;

my $receiver = receiver {
    secret 'secret1234'; # secret is optional, but strongly RECOMMENDED!
    on push => sub {
        my ($event, $req) = @_;
        warn $event->event;
        my $payload = $event->payload;
    };
};
$receiver->to_app;

DESCRIPTION

Github::Hooks::Receiver provides DSL interface of Github::Hooks::Receiver.

LICENSE

Copyright (C) Songmu.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Songmu <y.songmu@gmail.com>