nitrpg: also react on reopened pull requests
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 26 Jun 2015 01:42:28 +0000 (21:42 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Sat, 24 Oct 2015 17:59:11 +0000 (13:59 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitrpg/src/reactors.nit

index da8b212..e2717f4 100644 (file)
@@ -58,7 +58,7 @@ redef class PullRequestEvent
 
        # Rewards player for opened pull requests.
        redef fun react_player_event(r, game) do
-               if action == "opened" then
+               if action == "opened" or action == "reopened" then
                        react_pull_open(r, game)
                else if action == "closed" then
                        react_pull_close(r, game)