lib/cobench/metrics/issues.rb in cobench-0.0.10 vs lib/cobench/metrics/issues.rb in cobench-0.0.11
- 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 = "#{@user} in:comments type:issue author:#{@user} created:>#{from}"
+ q = "in:comments type:issue author:#{@user} created:>#{from}"
json = @api.search_issues(q)
loog.debug("Found #{json.total_count} issues")
total = json.items.count do |p|
pr = p.url.split('/')[-1]
repo = p.repository_url.split('/')[-2..-1].join('/')