ChangeMilestoneIssueStats updates the open/closed issues counter and progress for the milestone associated with the given issue.
(issue *Issue)
| 270 | // ChangeMilestoneIssueStats updates the open/closed issues counter and progress |
| 271 | // for the milestone associated with the given issue. |
| 272 | func ChangeMilestoneIssueStats(issue *Issue) (err error) { |
| 273 | sess := x.NewSession() |
| 274 | defer sess.Close() |
| 275 | if err = sess.Begin(); err != nil { |
| 276 | return err |
| 277 | } |
| 278 | |
| 279 | if err = changeMilestoneIssueStats(sess, issue); err != nil { |
| 280 | return err |
| 281 | } |
| 282 | |
| 283 | return sess.Commit() |
| 284 | } |
| 285 | |
| 286 | func changeMilestoneAssign(e *xorm.Session, issue *Issue, oldMilestoneID int64) error { |
| 287 | if oldMilestoneID > 0 { |
nothing calls this directly
no test coverage detected