Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added logging when we find a non-master commit

  • Loading branch information...
commit db432fdf6be062fbb648e4be03ed159e051f8dc7 1 parent d2a458b
@sarahmei sarahmei authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 diff_mailer.rb
View
5 diff_mailer.rb
@@ -14,7 +14,10 @@
post '/commit' do
commit_json = JSON.parse(CGI.unescape(params["payload"]))
- return unless commit_json["ref"] == "refs/heads/master"
+ if commit_json["ref"] != "refs/heads/master"
+ puts "Got notification of a non-master commit (#{commit_json["ref"]}) - ignoring."
+ return
+ end
commit_details = []
authors = []
Please sign in to comment.
Something went wrong with that request. Please try again.