lib/cobench/metrics/pulls.rb in cobench-0.0.15 vs lib/cobench/metrics/pulls.rb in cobench-0.0.16

- old
+ new

@@ -32,10 +32,10 @@ @opts = opts end def take(loog) from = (Time.now - (60 * 60 * 24 * @opts[:days])).strftime('%Y-%m-%d') - q = "in:comments type:pr author:#{@user} is:merged closed:>#{from}" + q = "in:comments type:pr author:#{@user} is:merged merged:>#{from}" json = @api.search_issues(q) loog.debug("Found #{json.total_count} pull requests") hoc = 0 total = json.items.count do |p| pr = p.pull_request.url.split('/')[-1]