Sha256: 2429e63e7ffb66291eac66faeb70602e529392a212d423dfc29b3d6887524c4e

Contents?: true

Size: 460 Bytes

Versions: 11

Compression:

Stored size: 460 Bytes

Contents

module Pronto
  class Client
    def initialize(repo)
      @repo = repo
      @config = Config.new
      @comment_cache = {}
      @pull_id_cache = {}
    end

    def env_pull_id
      if (pull_request = ENV['PULL_REQUEST_ID'])
        warn "[DEPRECATION] `PULL_REQUEST_ID` is deprecated.  Please use `PRONTO_PULL_REQUEST_ID` instead."
      end

      pull_request ||= ENV['PRONTO_PULL_REQUEST_ID']
      pull_request.to_i if pull_request
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pronto-0.11.3 lib/pronto/client.rb
pronto-0.11.2 lib/pronto/client.rb
pronto-0.11.1 lib/pronto/client.rb
pronto-0.11.0 lib/pronto/client.rb
pronto-0.10.0 lib/pronto/client.rb
pronto-0.9.5 lib/pronto/client.rb
pronto-0.9.4 lib/pronto/client.rb
pronto-0.9.3 lib/pronto/client.rb
pronto-0.9.2 lib/pronto/client.rb
pronto-0.9.1 lib/pronto/client.rb
pronto-0.9.0 lib/pronto/client.rb