Class: Danger::PullRequestFinder
- Inherits:
-
Object
- Object
- Danger::PullRequestFinder
- Defined in:
- lib/danger/ci_source/support/pull_request_finder.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(specific_pull_request_id, repo_slug = nil, remote: false, git_logs: "") ⇒ PullRequestFinder
constructor
A new instance of PullRequestFinder.
Constructor Details
#initialize(specific_pull_request_id, repo_slug = nil, remote: false, git_logs: "") ⇒ PullRequestFinder
Returns a new instance of PullRequestFinder.
7 8 9 10 11 12 |
# File 'lib/danger/ci_source/support/pull_request_finder.rb', line 7 def initialize(specific_pull_request_id, repo_slug = nil, remote: false, git_logs: "") @specific_pull_request_id = specific_pull_request_id @git_logs = git_logs @repo_slug = repo_slug @remote = to_boolean(remote) end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 |
# File 'lib/danger/ci_source/support/pull_request_finder.rb', line 14 def call check_if_any_pull_request! pull_request end |