lib/cobench/metrics/pulls.rb in cobench-0.0.8 vs lib/cobench/metrics/pulls.rb in cobench-0.0.9

- old
+ new

@@ -39,10 +39,10 @@ loog.debug("Found #{json.total_count} pull requests") hoc = 0 total = json.items.count do |p| pr = p.pull_request.url.split('/')[-1] repo = p.repository_url.split('/')[-2..-1].join('/') - next unless Cobench::Match.new(@opts).matches?(repo) + next unless Cobench::Match.new(@opts, loog).matches?(repo) pr_json = @api.pull_request(repo, pr) hocs = pr_json.additions + pr_json.deletions hoc += hocs loog.debug("Including #{repo}##{pr} with #{hocs}") end