lib/danger/ci_source/appveyor.rb in danger-9.1.0 vs lib/danger/ci_source/appveyor.rb in danger-9.2.0
- old
+ new
@@ -40,9 +40,10 @@
env.key? "APPVEYOR"
end
def self.validates_as_pr?(env)
return false unless env.key? "APPVEYOR_PULL_REQUEST_NUMBER"
+
env["APPVEYOR_PULL_REQUEST_NUMBER"].to_i > 0
end
def initialize(env)
self.repo_slug = env["APPVEYOR_REPO_NAME"]