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