class Pronto::Client
Public Class Methods
Source
# File lib/pronto/client.rb, line 3 def initialize(repo) @repo = repo @config = Config.new @comment_cache = {} @pull_id_cache = {} end
Public Instance Methods
Source
# File lib/pronto/client.rb, line 10 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