Class: Pronto::Client
- Inherits:
-
Object
- Object
- Pronto::Client
- Defined in:
- lib/pronto/client.rb
Instance Method Summary collapse
- #env_pull_id ⇒ Object
-
#initialize(repo) ⇒ Client
constructor
A new instance of Client.
Constructor Details
Instance Method Details
#env_pull_id ⇒ Object
10 11 12 13 14 15 16 17 |
# 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 |