lib/danger/ci_source/buildkite.rb in danger-0.9.1 vs lib/danger/ci_source/buildkite.rb in danger-0.10.0
- old
+ new
@@ -1,9 +1,10 @@
# https://buildkite.com/docs/agent/osx
# https://buildkite.com/docs/guides/environment-variables
module Danger
module CISource
+ # https://buildkite.com
class Buildkite < CI
def self.validates?(env)
return false unless env["BUILDKITE"]
return false unless env["BUILDKITE_PULL_REQUEST_REPO"] && !env["BUILDKITE_PULL_REQUEST_REPO"].empty?
return false unless env["BUILDKITE_PULL_REQUEST"]