Sha256: a2acbb572bc615778ac15eb893a5982e740d6d4d33794bab9d8fc032824725ac

Contents?: true

Size: 779 Bytes

Versions: 13

Compression:

Stored size: 779 Bytes

Contents

# frozen_string_literal: true

require_relative "../base"

module Neetob
  class CLI
    module Github
      module Repositories
        class PullRequests < Base
          attr_accessor :repos, :sandbox

          def initialize(repos, sandbox = false)
            super()
            @repos = repos
            @sandbox = sandbox
          end

          def run
            matching_repos = find_all_matching_apps_or_repos(repos, :github, sandbox)
            data = []
            matching_repos.each do |repo|
              begin
                data << client.pull_requests(repo)
              rescue StandardError => e
                ExceptionHandler.new(e).process
              end
            end
            data
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
neetob-0.5.29 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.28 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.27 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.26 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.25 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.24 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.23 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.22 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.21 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.20 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.19 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.18 lib/neetob/cli/github/repositories/pull_requests.rb
neetob-0.5.17 lib/neetob/cli/github/repositories/pull_requests.rb