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

Method State

internal/database/milestone.go:75–80  ·  view source on GitHub ↗

State returns string representation of milestone status.

()

Source from the content-addressed store, hash-verified

73
74// State returns string representation of milestone status.
75func (m *Milestone) State() api.StateType {
76 if m.IsClosed {
77 return api.STATE_CLOSED
78 }
79 return api.STATE_OPEN
80}
81
82func (m *Milestone) ChangeStatus(isClosed bool) error {
83 return ChangeMilestoneStatus(m, isClosed)

Callers 1

APIFormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected