lib/danger/ci_source/xcode_server.rb in danger-3.0.3 vs lib/danger/ci_source/xcode_server.rb in danger-3.1.0

- old
+ new

@@ -19,10 +19,11 @@ def self.validates_as_ci?(env) env.key? "XCS_BOT_NAME" end def self.validates_as_pr?(env) - env["XCS_BOT_NAME"].include? "BuildaBot" + value = env["XCS_BOT_NAME"] + !value.nil? && value.include?("BuildaBot") end def supported_request_sources @supported_request_sources ||= [Danger::RequestSources::GitHub] end