[Bps-public-commit] smokingit branch, slack, repushed
Alex Vandiver
alexmv at bestpractical.com
Tue Dec 9 15:55:57 EST 2014
The branch slack was deleted and repushed:
was 6489966d40c2893aa39117e0f33d1a393ff14214
now ff669ec4cdd0a2ff2e430050f09e8b6428060efb
1: 92ecb92 = 1: 92ecb92 Switch to slack
2: 6489966 ! 2: ff669ec Resolve channel name to id
@@ -32,12 +32,14 @@
my $message = $self->do_analyze($smoke);
return unless $message;
+- $self->send_to( Jifty->config->app('slack')->{channel} => $message );
+ my $channel = Jifty->config->app('slack')->{channel};
+ unless ($channel =~ /^C/) {
+ ($channel) = map {$_->{id}}
+ grep {$_->{name} eq $channel}
+ values %{ $self->channels };
+ }
- $self->send_to( Jifty->config->app('slack')->{channel} => $message );
++ $self->send_to( $channel => $message );
};
warn "$@" if $@;
+ }
More information about the Bps-public-commit
mailing list