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

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Jun 22 23:26:16 EDT 2009


The branch, master has been updated
       via  ac30941b6d71769156fdabb3cd1bd315d943d1a5 (commit)
      from  a2bf82f2d000b31c782482b4a0497b3f2b166a63 (commit)

Summary of changes:
 lib/App/SD/Replica/github.pm |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit ac30941b6d71769156fdabb3cd1bd315d943d1a5
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Jun 23 11:26:10 2009 +0800

    set project name for github repo automatically

diff --git a/lib/App/SD/Replica/github.pm b/lib/App/SD/Replica/github.pm
index 5c35280..581773f 100644
--- a/lib/App/SD/Replica/github.pm
+++ b/lib/App/SD/Replica/github.pm
@@ -79,6 +79,16 @@ sub remote_uri_path_for_id {
     return "/ticket/".$id;
 }
 
+sub database_settings {
+    my $self = shift;
+    return {
+# TODO limit statuses too? the problem is github's statuses are so poor,
+# it only has 2 statuses: 'open' and 'closed'.
+        project_name => $self->owner . '/' . $self->repo,
+    };
+
+}
+
 __PACKAGE__->meta->make_immutable;
 no Any::Moose;
 1;

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



More information about the Bps-public-commit mailing list