Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using git::commitbuild

  • Loading branch information...
commit 373ee23281046a978a4847be53e1b098d2b59270 1 parent 2e0fd7c
@jquelin authored
Showing with 33 additions and 10 deletions.
  1. +33 −10 lib/Dist/Zilla/PluginBundle/JQUELIN.pm
View
43 lib/Dist/Zilla/PluginBundle/JQUELIN.pm
@@ -77,6 +77,8 @@ sub bundle_config {
# params for pod weaver
$arg->{weaver} ||= 'pod';
+ my $release_branch = 'releases';
+
# long list of plugins
my @wanted = (
# -- static meta-information
@@ -136,6 +138,19 @@ sub bundle_config {
# -- release
[ CheckChangeLog => {} ],
+ [ "Git::Check" => {} ],
+ [ "Git::Commit" => {} ],
+ [ "Git::CommitBuild" => {
+ branch => '',
+ release_branch => $release_branch,
+ } ],
+ [ "Git::Tag" => "TagMaster" => {} ],
+ [ "Git::Tag" => "TagRelease" => {
+ tag_format => 'cpan-v%v',
+ branch => $release_branch,
+ } ],
+ [ "Git::Push" => {} ],
+
#[ @Git],
[ UploadToCPAN => {} ],
);
@@ -143,19 +158,18 @@ sub bundle_config {
# create list of plugins
my @plugins;
for my $wanted (@wanted) {
- my ($name, $arg) = @$wanted;
- my $class = "Dist::Zilla::Plugin::$name";
+ my ($plugin, $name, $arg);
+ if ( scalar(@$wanted) == 2 ) {
+ ($plugin, $arg) = @$wanted;
+ $name = $plugin;
+ } else {
+ ($plugin, $name, $arg) = @$wanted;
+ }
+ my $class = "Dist::Zilla::Plugin::$plugin";
Class::MOP::load_class($class); # make sure plugin exists
push @plugins, [ "$section->{name}/$name" => $class => $arg ];
}
- # add git plugins
- my @gitplugins = Dist::Zilla::PluginBundle::Git->bundle_config( {
- name => "$section->{name}/Git",
- payload => { },
- } );
- push @plugins, @gitplugins;
-
return @plugins;
}
@@ -230,7 +244,16 @@ equivalent to:
; -- release
[CheckChangeLog]
- [@Git]
+ [Git::Check],
+ [Git::Commit],
+ [Git::CommitBuild]
+ branch =
+ release_branch = releases
+ [Git::Tag / TagMaster]
+ [Git::Tag / TagRelease]
+ tag_format = cpan-v%v
+ branch = releases
+ [Git::Push],
[UploadToCPAN]
The following options are accepted:
Please sign in to comment.
Something went wrong with that request. Please try again.