Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-GitHub CPAN distribution.

Report information
The Basics
Id: 96068
Status: resolved
Priority: 0/
Queue: Net-GitHub

People
Owner: Nobody in particular
Requestors: rob [...] hoelz.ro
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.62
Fixed in: (no value)



Subject: Calling $pulls->pulls({ state => 'closed' }) results in Not Found, rather than retrieving closed PRs
The documentation suggests that one may use Net::GitHub::V3::PullRequest with an optional hash of params, which can be used to retrieve closed pull requests. However, this does not currently work as documented; a Not Found error is raised because the hash of parameters is used as the username to build the URL. The attached file should hopefully demonstrate what I mean.
Subject: test.pl
#!/usr/bin/env perl use strict; use warnings; use feature qw(say); use Net::GitHub; my $gh = Net::GitHub->new; $gh->set_default_user_repo('petdance', 'ack2'); my $pulls = $gh->pull_request; say scalar(()= $pulls->pulls({ state => 'closed' })); # this works #say scalar(()= $pulls->pulls('petdance', 'ack2', { state => 'closed' }));
Thanks for reporting. a new version is shipped to CPAN. Please test.