Przeglądaj źródła

Update closed issues stats for repository

Justin Nuß 10 lat temu
rodzic
commit
c850c01007
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      models/action.go

+ 6 - 0
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
 			}