Skip to content

Commit

Permalink
Don't post in the same room twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Reprazent authored and mattr- committed Oct 5, 2014
1 parent b9c4e51 commit 731a60b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/janky/notifier/failure_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class FailureService < ChatService
def self.completed(build)
return if build.green?
return unless failure_room = ENV["JANKY_CHAT_FAILURE_ROOM"]
return if failure_room == build.room_id
::Janky::ChatService.speak(message(build), failure_room, {:color => color(build)})
end
end
Expand Down

0 comments on commit 731a60b

Please sign in to comment.