Permalink
Browse files

ignore commits that were already part of the repository

  • Loading branch information...
tmm1 committed Mar 5, 2011
1 parent 89f45fc commit 5c4eebdfec02bc6f970f8004c4db5de1493835d9
Showing with 3 additions and 1 deletion.
  1. +3 −1 services/campfire.rb
View
@@ -7,7 +7,9 @@
branch = payload['ref_name']
commits = payload['commits']
compare_url = payload['compare']
commits.reject! { |commit| commit['message'].to_s.strip == '' }
commits.reject! { |commit|
commit['message'].to_s.strip == '' || commit['distinct'] == false
}
next if commits.empty?
campfire = Tinder::Campfire.new(data['subdomain'], :ssl => true)
play_sound = data['play_sound'].to_i == 1

0 comments on commit 5c4eebd

Please sign in to comment.