Skip to content

Commit 11b7ebb

Browse files
authored
Script/Tickets code cleanup (#1295)
1 parent 07643e3 commit 11b7ebb

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

cpanfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ requires 'IO::Prompt::Tiny';
6565
requires 'IO::Uncompress::Bunzip2', '2.106';
6666
requires 'IO::Zlib';
6767
requires 'IPC::Run3', '0.048';
68-
requires 'JSON::MaybeXS', '1.004004'; # indirect dep
6968
requires 'List::Util', '1.62';
7069
requires 'Log::Any::Adapter';
7170
requires 'Log::Any::Adapter::Log4perl';

lib/MetaCPAN/Script/Tickets.pm

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ has rt_summary_url => (
2121
default => 'https://rt.cpan.org/Public/bugs-per-dist.tsv',
2222
);
2323

24-
has github_issues => (
25-
is => 'ro',
26-
required => 1,
27-
default => 'https://api.github.com/repos/%s/%s/issues?per_page=100',
28-
);
29-
3024
has github_token => (
3125
is => 'ro',
3226
lazy => 1,
@@ -117,8 +111,6 @@ sub index_github_bugs {
117111

118112
my %summary;
119113

120-
my $json = JSON::MaybeXS->new( allow_nonref => 1 );
121-
122114
RELEASE: while ( my $release = $scroll->next ) {
123115
my $resources = $release->resources;
124116
my ( $user, $repo, $source )
@@ -312,4 +304,3 @@ http://fastapi.metacpan.org/v1/distribution/Moose
312304
http://fastapi.metacpan.org/v1/distribution/HTTP-BrowserDetect
313305
314306
=cut
315-

t/00_setup.t

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ ok(
117117
scheme => 'file',
118118
path => $fakecpan_dir->child('bugs.tsv')->absolute->stringify,
119119
),
120-
github_issues => uri(
121-
scheme => 'file',
122-
path => $fakecpan_dir->child('github')->absolute->stringify
123-
. '/%s/%s.json?per_page=100'
124-
),
125120
} )->run,
126121
'tickets'
127122
);

0 commit comments

Comments
 (0)