[Bps-public-commit] App-Changeloggr branch, master, updated. d7d8d7fbeeb833f4e168003d9c62f586946f66a2

sartak at bestpractical.com sartak at bestpractical.com
Fri May 22 16:23:42 EDT 2009


The branch, master has been updated
       via  d7d8d7fbeeb833f4e168003d9c62f586946f66a2 (commit)
      from  de5eb65a956c67d0397484a7cc7826f5e412edc8 (commit)

Summary of changes:
 lib/App/Changeloggr/Action/CreateVote.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit d7d8d7fbeeb833f4e168003d9c62f586946f66a2
Author: Shawn M Moore <sartak at gmail.com>
Date:   Fri May 22 16:23:36 2009 -0400

    Accept private tags as okay

diff --git a/lib/App/Changeloggr/Action/CreateVote.pm b/lib/App/Changeloggr/Action/CreateVote.pm
index d673164..d042a65 100644
--- a/lib/App/Changeloggr/Action/CreateVote.pm
+++ b/lib/App/Changeloggr/Action/CreateVote.pm
@@ -17,6 +17,9 @@ sub validate_tag {
     return $self->validation_error(change_id => "No change provided")
         if !$changelog->id;
 
+    # private tags are always okay
+    return $self->validation_ok('tag') if $tag =~ /^_/;
+
     # if the admin wants incremental tag creation for this project, then
     # add this tag before voting
     if (!$changelog->has_tag($tag) && $changelog->incremental_tags) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list