rom TravisCI
=cut
require RT::Config;
use RT::Date;
use LWP::UserAgent ();
use URI::Escape;
use JSON;
$RT::Config::META{TravisCI} = {
Type => 'HASH',
};
RT->AddStyleSheets('travisci.css');
RT-
eval {
$result = decode_json($response->decoded_content);
};
if ($@) {
return { success => 0, error => 'Could not parse result as JSON' };
}
if ( !$result->{last_