base 'App::GitHooks::Plugin';
# External dependencies.
use CPAN::Changes;
use Data::Dumper;
use JSON qw();
use LWP::UserAgent;
use Log::Any qw($log);
use Try::Tiny;
# Internal dependencies.
use App
lack, check under "Integration
settings" for the following information: "Webhook URL", "Send your JSON
payloads to this URL". This is the URL you need to set as the value for the
C<slack_post_url> con
%s', $channel, $message );
# Prepare payload for the request.
my $request_payload =
JSON::encode_json(
{
text => $message,
channel => $channel,
}
);
# Prepare requ