Fork into org
nathanhaigh opened this issue · comments
Nathan S. Watson-Haigh commented
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',
);
Johannes Plunien commented
Thanks for your bug report!
49e7543 should fix it. Would be cool if you could test it :).
Johannes Plunien commented
I've tested it myself and can confirm it fixed.
Johannes Plunien commented
v0.01025 including the fix is on its way to the CPAN...