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' }));