->pull_requests
Tux opened this issue · comments
H.Merijn Brand commented
In order to analyze current status/activity, I want to see the proportion of open PR's to alreade merged PR's. The current interface does not allow me to fetch information about closed PR's.
I'd like to see:
my @prs = $ph->repos->get (user => "Tux", repo => "Text-CSV_XS")->pull_requests;
my @prs = $ph->repos->get (user => "Tux", repo => "Text-CSV_XS")->pull_requests ("open"); # same as above
my @prs = $ph->repos->get (user => "Tux", repo => "Text-CSV_XS")->pull_requests ("closed");
my @prs = $ph->repos->get (user => "Tux", repo => "Text-CSV_XS")->pull_requests ("all");
Olaf Alders commented
If I understand you correctly, you're trying to get info on closed pull requests but it's not working? Could you share your code for that?
Olaf Alders commented
A pull_requests
method would be nice to have.