From 3ce92f0649f053ef93a2ab7b61a8a3771f9bfa71 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Fri, 6 Feb 2015 23:24:51 +0100 Subject: [PATCH] contrib/nitrpg: do stats on merged commits Signed-off-by: Alexandre Terrasa --- contrib/nitrpg/src/statistics.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/nitrpg/src/statistics.nit b/contrib/nitrpg/src/statistics.nit index cf48978..061722f 100644 --- a/contrib/nitrpg/src/statistics.nit +++ b/contrib/nitrpg/src/statistics.nit @@ -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 -- 1.7.9.5