[Bps-public-commit] SD branch, master, updated. b33f2f20ac6f7db5d3568d74ed0f6baf435e15c8

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Jun 12 03:05:23 EDT 2009


The branch, master has been updated
       via  b33f2f20ac6f7db5d3568d74ed0f6baf435e15c8 (commit)
      from  1c4c703922acdff74cd0f8352b790576311bbcc3 (commit)

Summary of changes:
 lib/App/SD/Replica/github.pm             |    2 +-
 lib/App/SD/Replica/github/PushEncoder.pm |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit b33f2f20ac6f7db5d3568d74ed0f6baf435e15c8
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Jun 12 15:05:07 2009 +0800

    make title map to summary

diff --git a/lib/App/SD/Replica/github.pm b/lib/App/SD/Replica/github.pm
index f567c34..c973f61 100644
--- a/lib/App/SD/Replica/github.pm
+++ b/lib/App/SD/Replica/github.pm
@@ -22,7 +22,7 @@ has owner      => ( isa => 'Str',             is => 'rw' );
 has repo       => ( isa => 'Str',             is => 'rw' );
 has query      => ( isa => 'Str',             is => 'rw' );
 
-our %PROP_MAP = ( state => 'status', );
+our %PROP_MAP = ( state => 'status', title => 'summary' );
 
 sub BUILD {
     my $self = shift;
diff --git a/lib/App/SD/Replica/github/PushEncoder.pm b/lib/App/SD/Replica/github/PushEncoder.pm
index 11bca38..b92dc87 100644
--- a/lib/App/SD/Replica/github/PushEncoder.pm
+++ b/lib/App/SD/Replica/github/PushEncoder.pm
@@ -133,7 +133,10 @@ sub _recode_props_for_integrate {
     my %attr;
 
     for my $key ( keys %props ) {
-        if ( $key =~ /^(title|body)/ ) {
+        if ( $key eq 'summary' ) {
+            $attr{title} = $props{$key};
+        }
+        elsif ( $key eq 'body' ) {
             $attr{$key} = $props{$key};
         }
         elsif ( $key eq 'status' ) {

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



More information about the Bps-public-commit mailing list