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

Method State

internal/database/issue.go:175–180  ·  view source on GitHub ↗

State returns string representation of issue status.

()

Source from the content-addressed store, hash-verified

173
174// State returns string representation of issue status.
175func (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,

Callers 1

APIFormatMethod · 0.95

Implementers 1

mailerIssueinternal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected