diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-11-29 09:25:47 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-11-29 11:50:22 +0100 |
commit | 42ec5ce740fdd646755ca38ea5ce20f6cc7dc6b1 (patch) | |
tree | 125a480f9643570c92dd2859ba3bfc6d2b39b31d /models/issue.go | |
parent | dad806d3ea0da6a09eea14ac467d0c843a98dda4 (diff) | |
download | gitea-42ec5ce740fdd646755ca38ea5ce20f6cc7dc6b1.tar.gz gitea-42ec5ce740fdd646755ca38ea5ce20f6cc7dc6b1.zip |
Fix breakage from vendor-update
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/models/issue.go b/models/issue.go index d3418e4449..990d4a4bc5 100644 --- a/models/issue.go +++ b/models/issue.go @@ -173,9 +173,9 @@ func (issue *Issue) HTMLURL() string { // State returns string representation of issue status. func (issue *Issue) State() api.StateType { if issue.IsClosed { - return api.STATE_CLOSED + return api.StateClosed } - return api.STATE_OPEN + return api.StateOpen } // APIFormat assumes some fields assigned with values: @@ -483,7 +483,7 @@ func (issue *Issue) ChangeStatus(doer *User, repo *Repository, isClosed bool) (e if isClosed { apiPullRequest.Action = api.HookIssueClosed } else { - apiPullRequest.Action = api.HookIssueReopened + apiPullRequest.Action = api.HookIssueReOpened } err = PrepareWebhooks(repo, HookEventPullRequest, apiPullRequest) } @@ -1409,9 +1409,9 @@ func (m *Milestone) AfterSet(colName string, _ xorm.Cell) { // State returns string representation of milestone status. func (m *Milestone) State() api.StateType { if m.IsClosed { - return api.STATE_CLOSED + return api.StateClosed } - return api.STATE_OPEN + return api.StateOpen } // APIFormat returns this Milestone in API format. |