Sha256: e0eed2cbea5d99d6c76021b0248a135fc59c04e7b30ae5729a206e69f842990a
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
# http://github.com/surf-build/surf module Danger module CISource class Surf < CI def self.validates?(env) return ["SURF_REPO", "SURF_NWO"].all? { |x| env[x] } end def supported_request_sources @supported_request_sources ||= [Danger::RequestSources::GitHub] end def initialize(env) self.repo_slug = env["SURF_NWO"] if env["SURF_PR_NUM"].to_i > 0 self.pull_request_id = env["SURF_PR_NUM"] end self.repo_url = env["SURF_REPO"] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-0.9.1 | lib/danger/ci_source/surf.rb |
danger-0.9.0 | lib/danger/ci_source/surf.rb |