API-GitForge
view release on metacpan or search on metacpan
lib/App/git/nuke_forge_fork.pm view on Meta::CPAN
};
#>>>
GetOptions "upstream=s" => \$upstream;
my @fork_branches
= grep !/\Agitforge\z/,
map { m#refs/heads/#; $' } $git->ls_remote(qw(--heads fork));
if (@fork_branches) {
say "Would delete the following branches:";
say " $_" for @fork_branches;
print "\n";
exit unless $term->ask_yn(prompt => "Are you sure?");
}
my ($forge_domain, $upstream_repo) = remote_forge_info $upstream;
my $forge = new_from_domain
domain => $forge_domain,
access_token => forge_access_token $forge_domain;
$forge->nuke_fork($upstream_repo);
$git->remote(qw(rm fork));
t/author-pod-coverage.t view on Meta::CPAN
#!perl
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
print qq{1..0 # SKIP these tests are for testing by the author\n};
exit
}
}
# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests.
use Test::Pod::Coverage 1.08;
use Pod::Coverage::TrustPod;
all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
t/author-pod-syntax.t view on Meta::CPAN
#!perl
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
print qq{1..0 # SKIP these tests are for testing by the author\n};
exit
}
}
# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use strict; use warnings;
use Test::More;
use Test::Pod 1.41;
all_pod_files_ok();
( run in 0.414 second using v1.01-cache-2.11-cpan-de7293f3b23 )