State returns string representation of issue status.
()
| 173 | |
| 174 | // State returns string representation of issue status. |
| 175 | func (issue *Issue) State() api.StateType { |
| 176 | if issue.IsClosed { |
| 177 | return api.STATE_CLOSED |
| 178 | } |
| 179 | return api.STATE_OPEN |
| 180 | } |
| 181 | |
| 182 | // This method assumes some fields assigned with values: |
| 183 | // Required - Poster, Labels, |
no outgoing calls
no test coverage detected