Sha256: d37a635d61441f3ff3f6923dba3825b05db31adf4ff097a967893615895bcb44
Contents?: true
Size: 668 Bytes
Versions: 4
Compression:
Stored size: 668 Bytes
Contents
module Danger module CISource class TeamCity < CI def self.validates?(env) env.key? 'TEAMCITY_VERSION' end def supported_request_sources @supported_request_sources ||= [Danger::RequestSources::GitHub] end def initialize(env) # NB: Unfortunately TeamCity doesn't provide these variables # automatically so you have to add these variables manually to your # project or build configuration self.repo_slug = env['GITHUB_REPO_SLUG'] self.pull_request_id = env['GITHUB_PULL_REQUEST_ID'].to_i self.repo_url = env['GITHUB_REPO_URL'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
danger-0.8.5 | lib/danger/ci_source/teamcity.rb |
danger-0.8.4 | lib/danger/ci_source/teamcity.rb |
danger-0.8.3 | lib/danger/ci_source/teamcity.rb |
danger-0.8.2 | lib/danger/ci_source/teamcity.rb |