# http://docs.travis-ci.com/user/osx-ci-environment/ # http://docs.travis-ci.com/user/environment-variables/ module Danger class Travis attr_accessor :repo_slug, :pull_request_id def self.validates?(env) return env["HAS_JOSH_K_SEAL_OF_APPROVAL"] != nil end def initialize(env) self.repo_slug = env["TRAVIS_REPO_SLUG"] self.pull_request_id = env["TRAVIS_PULL_REQUEST"] end end end