MCPcopy Create free account
hub / github.com/gogs/gogs / ChangeMilestoneIssueStats

Function ChangeMilestoneIssueStats

internal/database/milestone.go:272–284  ·  view source on GitHub ↗

ChangeMilestoneIssueStats updates the open/closed issues counter and progress for the milestone associated with the given issue.

(issue *Issue)

Source from the content-addressed store, hash-verified

270// ChangeMilestoneIssueStats updates the open/closed issues counter and progress
271// for the milestone associated with the given issue.
272func 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
286func changeMilestoneAssign(e *xorm.Session, issue *Issue, oldMilestoneID int64) error {
287 if oldMilestoneID > 0 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected