diff options
author | Justin Nuß <justin.nuss@hmmh.de> | 2014-07-23 13:54:46 +0200 |
---|---|---|
committer | Justin Nuß <justin.nuss@hmmh.de> | 2014-07-23 13:54:46 +0200 |
commit | c850c01007f9853bb22c940f47d3d7f1d00ba1cb (patch) | |
tree | 157081548ea3b4fff2c81bfe9d3895cd59047c55 | |
parent | 469cbc881340dd3c31d4eeb3eb07ee805308a246 (diff) | |
download | gitea-c850c01007f9853bb22c940f47d3d7f1d00ba1cb.tar.gz gitea-c850c01007f9853bb22c940f47d3d7f1d00ba1cb.zip |
Update closed issues stats for repository
-rw-r--r-- | models/action.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go index 2fbbdc3133..21e7b1f444 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 } |