Class: PairingMatrix::GithubCommitReader

Inherits:
CommitReader show all
Defined in:
lib/pairing_matrix/github_commit_reader.rb

Instance Method Summary collapse

Methods inherited from CommitReader

#authors, #authors_with_commits

Constructor Details

#initialize(config) ⇒ GithubCommitReader

Returns a new instance of GithubCommitReader.



8
9
10
11
# File 'lib/pairing_matrix/github_commit_reader.rb', line 8

def initialize(config)
  super(config)
  @github_client = github_client
end

Instance Method Details

#read(since) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/pairing_matrix/github_commit_reader.rb', line 13

def read(since)
  commits = []
  together do
    @config.github_repos.map do |repo|
      async do
        commits << fetch_commits(repo, since)
      end
    end
  end
  commits.flatten
end