| 1 | package Dist::Zilla::Plugin::ATOOMIC::Git::CheckFor::CorrectBranch; | ||
| 2 | |||
| 3 | use v5.10; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use autodie; | ||
| 8 | use namespace::autoclean; | ||
| 9 | |||
| 10 | our $VERSION = '1.00'; | ||
| 11 | |||
| 12 | use Moose; | ||
| 13 | |||
| 14 | extends 'Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch'; | ||
| 15 | |||
| 16 | override before_release => sub { | ||
| 17 | my $self = shift; | ||
| 18 | |||
| 19 | return if $self->zilla->is_trial; | ||
| 20 | |||
| 21 | super(); | ||
| 22 | }; | ||
| 23 | |||
| 24 | __PACKAGE__->meta->make_immutable; | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | # ABSTRACT: Checks the branch on non-TRIAL releases | ||
| 29 | |||
| 30 | __END__ |