NAME
Dist::Zilla::Plugin::GitHub::Meta - Add a GitHub repo's info to META.{yml,json}
VERSION
version 0.49
SYNOPSIS
Configure git with your GitHub login name:
$ git config --global github.user LoginName
then, in your dist.ini:
# default config
[GitHub::Meta]
# to override the repo name
[GitHub::Meta]
repo = SomeRepo
See "ATTRIBUTES" for more options.
DESCRIPTION
This Dist::Zilla plugin adds some information about the distribution's GitHub repository to the META.{yml,json} files, using the official CPAN::Meta specification.
Note that, to work properly, GitHub::Meta needs the network to connect to GitHub itself. If the network is not available, it will try to come up with sensible data, but it may be inaccurate.
GitHub::Meta currently sets the following fields:
homepage
-
The official home of this project on the web, taken from the GitHub repository info. If the
homepage
option is set to false this will be skipped (default is true).When offline, this is not set.
repository
-
web
-
URL pointing to the GitHub page of the project.
url
-
URL pointing to the GitHub repository (
git://...
). type
-
This is set to
git
by default.
bugtracker
-
web
-
URL pointing to the GitHub issues page of the project. If the
bugs
option is set to false (default is true) or the issues are disabled in the GitHub repository, this will be skipped.When offline, this is not set.
ATTRIBUTES
repo
-
The name of the GitHub repository. By default the name will be extracted from the URL of the remote specified in the
remote
option, and if that fails the dist name (from dist.ini) is used. It can also be in the formuser/repo
when it belongs to another GitHub user/organization. remote
-
The name of the Git remote pointing to the GitHub repository (
"origin"
by default). This is used when trying to guess the repository name. homepage
-
The META homepage field will be set to the value of the homepage field set on the GitHub repository's info if this option is set to true (default).
wiki
-
The META homepage field will be set to the URL of the wiki of the GitHub repository, if this option is set to true (default is false) and if the GitHub Wiki happens to be activated (see the GitHub repository's
Admin
panel). bugs
-
The META bugtracker web field will be set to the issue's page of the repository on GitHub, if this option is set to true (default) and if the GitHub Issues happen to be activated (see the GitHub repository's
Admin
panel). fork
-
If the repository is a GitHub fork of another repository this option will make all the information be taken from the original repository instead of the forked one, if it's set to true (default).
require_auth
-
If this is true, then the API request will be sent with Authorization headers. This is useful if you are behind some sort of proxy that is triggering the GitHub rate limiting.
prompt_2fa
-
Prompt for GitHub two-factor authentication code if this option is set to true (default is false). If this option is set to false but GitHub requires 2fa for the login, it'll be automatically enabled.
This is only relevant if
require_auth
is true.
SUPPORT
Bugs may be submitted through the RT bug tracker (or bug-Dist-Zilla-Plugin-GitHub@rt.cpan.org).
There is also a mailing list available for users of this distribution, at http://dzil.org/#mailing-list.
There is also an irc channel available for users of this distribution, at #distzilla
on irc.perl.org
.
AUTHOR
Alessandro Ghedini <alexbio@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Alessandro Ghedini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.