The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dist::Zilla::Plugin::GitHub::Create - Create GitHub repo on dzil new

VERSION

version 0.21

SYNOPSIS

Configure git with your GitHub credentials:

    $ git config --global github.user LoginName
    $ git config --global github.password GitHubPassword

Alternatively you can install Config::Identity and write your credentials in the (optionally GPG-encrypted) ~/.github file as follows:

    login LoginName
    password GitHubpassword

then, in your profile.ini:

    [GitHub::Create]
    public = 1

DESCRIPTION

This Dist::Zilla plugin creates a new git repository on GitHub.com when a new distribution is created with dzil new.

It will also add a new git remote pointing to the newly created GitHub repository's private URL. See "ADDING REMOTE" for more info.

ATTRIBUTES

prompt

Prompt for confirmation before creating a GitHub repository if this option is set to true (default is false).

public

Create a public repository if this option is set to true (default), otherwise create a private repository.

remote

Specifies the git remote name to be added (default 'origin'). This will point to the newly created GitHub repository's private URL. See "ADDING REMOTE" for more info.

ADDING REMOTE

By default GitHub::Create adds a new git remote pointing to the newly created GitHub repository's private URL if, and only if, a git repository has already been initialized, and if the remote doesn't already exist in that repository.

To take full advantage of this feature you should use, along with GitHub::Create, the Dist::Zilla::Plugin::Git::Init plugin, leaving blank its remote option, as follows:

    [Git::Init]
    ; here goes your Git::Init config, remember
    ; to not set the 'remote' option
    [GitHub::Create]

You may set your preferred remote name, by setting the remote option of the GitHub::Create plugin, as follows:

    [Git::Init]
    [GitHub::Create]
    remote = myremote

Remember to put [Git::Init] before [GitHub::Create].

AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2011 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.