nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
contrib/nitrpg: do stats on merged commits
[nit.git]
/
contrib
/
nitrpg
/
src
/
statistics.nit
diff --git
a/contrib/nitrpg/src/statistics.nit
b/contrib/nitrpg/src/statistics.nit
index
cf48978
..
061722f
100644
(file)
--- 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