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

Function UpdateMilestone

internal/database/milestone.go:191–193  ·  view source on GitHub ↗

UpdateMilestone updates information of given milestone.

(m *Milestone)

Source from the content-addressed store, hash-verified

189
190// UpdateMilestone updates information of given milestone.
191func UpdateMilestone(m *Milestone) error {
192 return updateMilestone(x, m)
193}
194
195func countRepoMilestones(e Engine, repoID int64) int64 {
196 count, _ := e.Where("repo_id=?", repoID).Count(new(Milestone))

Callers 2

EditMilestonePostFunction · 0.92
EditMilestoneFunction · 0.92

Calls 1

updateMilestoneFunction · 0.85

Tested by

no test coverage detected