Sha256: 4566dd40cf2a25c2e747779c9bd24fbf22fd6d49a588a0ad5c0690535c3211d8
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
# http://readme.drone.io/usage/variables/ module Danger module CISource class Drone < CI def self.validates?(env) return false unless env['DRONE'] return false unless env['DRONE_REPO'] return false unless env['DRONE_PULL_REQUEST'].to_i > 0 return true end def supported_request_sources @supported_request_sources ||= [Danger::RequestSources::GitHub] end def initialize(env) self.repo_slug = env['DRONE_REPO'] self.pull_request_id = env['DRONE_PULL_REQUEST'] self.repo_url = GitRepo.new.origins # Drone doesn't provide a repo url env variable :/ end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-0.8.5 | lib/danger/ci_source/drone.rb |