File: fork_to_org.pl

package info (click to toggle)
libpithub-perl 0.01043-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: perl: 9,098; makefile: 7
file content (14 lines) | stat: -rwxr-xr-x 245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env perl
use strict;
use warnings;
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',
);