contrib/nitrpg: do stats on merged commits
[nit.git] / contrib / nitrpg / src / statistics.nit
index cf48978..061722f 100644 (file)
@@ -145,6 +145,9 @@ redef class PullRequestEvent
                        game.stats.inc("pulls_open")
                else if action == "closed" then
                        game.stats.dec("pulls_open")
+                       if pull.merged then
+                               game.stats["commits"] += pull.commits
+                       end
                end
        end
 end