class OctoMerge::ListPullRequests
Attributes
query[R]
repo[R]
Public Class Methods
new(repo:, query:)
click to toggle source
# File lib/octo_merge/list_pull_requests.rb, line 5 def initialize(repo:, query:) @repo = repo @query = query end
Public Instance Methods
all()
click to toggle source
# File lib/octo_merge/list_pull_requests.rb, line 10 def all @all ||= github_client.search_issues("is:open is:pr repo:#{repo} #{query}")[:items] end
Private Instance Methods
github_client()
click to toggle source
# File lib/octo_merge/list_pull_requests.rb, line 16 def github_client OctoMerge.github_client end