plu / Pithub

Perl Github v3 API

Home Page:http://metacpan.org/module/Pithub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork into org

nathanhaigh opened this issue · comments

I tried to use pithub to fork a repo into an organisation but it always goes into my personal account space and not the organisation. Am I doing something wrong or is this a bug? Also, is it possible to give the forked repo a new name? e.g. I'd like to fork a repo into an organisation which already contains the repo I'm cloning.

my $f = Pithub::Repos::Forks->new(
        token => 'my_token',
);

my $result = $f->create(
        org  => 'my_organisation',
        user => 'plu',
        repo => 'Pithub',
);

Thanks for your bug report!

49e7543 should fix it. Would be cool if you could test it :).

I've tested it myself and can confirm it fixed.

v0.01025 including the fix is on its way to the CPAN...