ugins to integrate Dist::Zilla with GitHub
use strict;
use warnings;
our $VERSION = '0.49';
use JSON::MaybeXS;
use Moose;
use Try::Tiny;
use HTTP::Tiny;
use Git::Wrapper;
use Class::Load qw(try_load
elease
#pod
#pod =item * L<Dist::Zilla::Plugin::GitHub::Meta> Add GitHub repo info to F<META.{yml,json}>
#pod
#pod =back
#pod
#pod This distribution also provides a plugin bundle, L<Dist::Zilla::Plugi
my $credentials = $self->_credentials;
my %headers = ( Accept => 'application/vnd.github.v3+json' );
if ($credentials->{pass}) {
require MIME::Base64;
my $basic = MIME::Base6
in::GitHub::Meta;
# ABSTRACT: Add a GitHub repo's info to META.{yml,json}
use strict;
use warnings;
our $VERSION = '0.49';
use JSON::MaybeXS;
use Moose;
extends 'Dist::Zilla::Plugin::GitHub';
with
lla plugin adds some information about the distribution's GitHub
#pod repository to the META.{yml,json} files, using the official L<CPAN::Meta>
#pod specification.
#pod
#pod Note that, to work properl
->log("Using offline repository information") if $offline;
if (!$offline && $repo->{fork} == JSON->true() && $self->fork == 1) {
my $parent = $repo->{parent}{full_name};
my $url
RACT: Create a new GitHub repo on dzil new
use strict;
use warnings;
our $VERSION = '0.49';
use JSON::MaybeXS;
use Moose;
use Try::Tiny;
use Git::Wrapper;
use File::Basename;
extends 'Dist::Zilla::
$self->org ? '/orgs/' . $self->org . '/' : '/user/';
$url .= 'repos';
$content = encode_json($params);
$self->log_debug("Sending POST $url");
my $response = $http->request('POST', $
CT: Update a GitHub repo's info on release
use strict;
use warnings;
our $VERSION = '0.49';
use JSON::MaybeXS;
use Moose;
use List::Util 'first';
extends 'Dist::Zilla::Plugin::GitHub';
with 'Dist:
CH $url");
my $response = HTTP::Tiny->new->request('PATCH', $url, {
content => encode_json($params),
headers => $self->_auth_headers,
});
my $repo = $self->_check_response