File: fork_to_org.pl

package info (click to toggle)
libpithub-perl 0.01025-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 880 kB
  • ctags: 300
  • sloc: perl: 3,204; makefile: 7
file content (15 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
use Pithub::Repos::Forks;

my $fork = Pithub::Repos::Forks->new(
    token => $ENV{GITHUB_TOKEN},
);

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