From 11b7ebb5c14c067ee4df16d79e2928b62b187d23 Mon Sep 17 00:00:00 2001 From: Mickey Date: Tue, 22 Oct 2024 19:22:17 +0200 Subject: [PATCH] Script/Tickets code cleanup (#1295) --- cpanfile | 1 - lib/MetaCPAN/Script/Tickets.pm | 9 --------- t/00_setup.t | 5 ----- 3 files changed, 15 deletions(-) diff --git a/cpanfile b/cpanfile index b3083b6bf..afd00cb20 100644 --- a/cpanfile +++ b/cpanfile @@ -65,7 +65,6 @@ requires 'IO::Prompt::Tiny'; requires 'IO::Uncompress::Bunzip2', '2.106'; requires 'IO::Zlib'; requires 'IPC::Run3', '0.048'; -requires 'JSON::MaybeXS', '1.004004'; # indirect dep requires 'List::Util', '1.62'; requires 'Log::Any::Adapter'; requires 'Log::Any::Adapter::Log4perl'; diff --git a/lib/MetaCPAN/Script/Tickets.pm b/lib/MetaCPAN/Script/Tickets.pm index 4faa209a8..776a0905d 100644 --- a/lib/MetaCPAN/Script/Tickets.pm +++ b/lib/MetaCPAN/Script/Tickets.pm @@ -21,12 +21,6 @@ has rt_summary_url => ( default => 'https://rt.cpan.org/Public/bugs-per-dist.tsv', ); -has github_issues => ( - is => 'ro', - required => 1, - default => 'https://api.github.com/repos/%s/%s/issues?per_page=100', -); - has github_token => ( is => 'ro', lazy => 1, @@ -117,8 +111,6 @@ sub index_github_bugs { my %summary; - my $json = JSON::MaybeXS->new( allow_nonref => 1 ); - RELEASE: while ( my $release = $scroll->next ) { my $resources = $release->resources; my ( $user, $repo, $source ) @@ -312,4 +304,3 @@ http://fastapi.metacpan.org/v1/distribution/Moose http://fastapi.metacpan.org/v1/distribution/HTTP-BrowserDetect =cut - diff --git a/t/00_setup.t b/t/00_setup.t index 982dbeb11..b0341ff21 100644 --- a/t/00_setup.t +++ b/t/00_setup.t @@ -117,11 +117,6 @@ ok( scheme => 'file', path => $fakecpan_dir->child('bugs.tsv')->absolute->stringify, ), - github_issues => uri( - scheme => 'file', - path => $fakecpan_dir->child('github')->absolute->stringify - . '/%s/%s.json?per_page=100' - ), } )->run, 'tickets' );