e File::Slurper qw/read_text read_binary/;
use Exporter qw(import);
use Moose;
use Try::Tiny;
use JSON::MaybeXS 1.004000;
with 'Dist::Zilla::Role::AfterRelease';
use namespace::autoclean;
has hash_a
JSON::MaybeXS::true : JSON::MaybeXS::false,
prerelease => $self->zilla->is_trial ? JSON::MaybeXS::true : JSON::MaybeXS::false,
generate_release_notes => $self->{github_notes} ? JSON
::MaybeXS::true : JSON::MaybeXS::false,
}
);
die "Discussion category name is invalid" if ($release->response eq '404');
die "Validation failed, or the endpoint has been spammed." if ($rel
_binary read_text );
use URI::Escape qw( uri_unescape );
use DDP;
use CPAN::Changes 0.500002;
use JSON::MaybeXS 1.004000;
class GitHub::Release {
field $repo :param //= '';
field
ft ? JSON::MaybeXS::true : JSON::MaybeXS::false;
$trial = $trial ? JSON::MaybeXS::true : JSON::MaybeXS::false;
$github_notes = $github_notes ? JSON::MaybeXS::true : JSON::Ma
t () {
return $draft ? JSON::MaybeXS::true : JSON::MaybeXS::false;
}
method set_draft ($setting) {
$draft = $setting ? JSON::MaybeXS::true : JSON::MaybeXS::false;
}
m