lib/cobench/metrics/reviews.rb in cobench-0.0.38 vs lib/cobench/metrics/reviews.rb in cobench-0.0.39
- old
+ new
@@ -42,9 +42,10 @@
pr = p.pull_request.url.split('/')[-1]
repo = p.repository_url.split('/')[-2..-1].join('/')
next unless Cobench::Match.new(@opts, loog).matches?(repo)
loog.debug("Including #{repo}##{pr} reviewed by @#{@user}")
posted = @api.pull_request_comments(repo, pr).count { |c| c[:user][:login].downcase == @user }
+ posted += @api.issue_comments(repo, pr).count { |c| c[:user][:login].downcase == @user }
loog.debug("#{posted} messages posted by @#{@user} to #{repo}##{pr}")
msgs += posted
end
[
{