From c850c01007f9853bb22c940f47d3d7f1d00ba1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justin=20Nu=C3=9F?= Date: Wed, 23 Jul 2014 13:54:46 +0200 Subject: [PATCH] Update closed issues stats for repository --- models/action.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/models/action.go b/models/action.go index 2fbbdc31334..21e7b1f4444 100644 --- a/models/action.go +++ b/models/action.go @@ -130,6 +130,12 @@ func updateIssuesCommit(repoUserName, repoName string, commits []*base.PushCommi return err } + issue.Repo.NumClosedIssues++ + + if err = UpdateRepository(issue.Repo); err != nil { + return err + } + if err = ChangeMilestoneIssueStats(issue); err != nil { return err }