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: 58969
Status: resolved
Priority: 0/
Queue: Net-GitHub

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.22
Fixed in: (no value)



Subject: Method to change a repository
gitpan needs to turn off the wiki and issues tabs on its repositories. There's a Github API to do this, but Net::GitHub::V2::Repositories doesn't support it. Here's code for that. sub change_repo { my $self = shift; my %changes = map { +"values[$_]" => $changes{$_} } keys @_; my $owner = $self->owner; my $repo = $self->repo; return $self->repos->get_json_to_obj_authed( "repos/show/$owner/$repo", %changes, "repository" ); } There's not really space in the API to set the owner and repository. The Net::GitHub::V2::Repositories API is inconsistent about them and I always found it weird that they could be overridden per-method anyway.
Sorry I didn't get any notification for this ticket few years ago. so it's got missed (without any reply). I'm going to close it since V2 is removed. very sorry that I didn't get back to you. Thanks