diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-24 03:05:41 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-24 03:05:41 -0400 |
commit | dce17c86ac26f2110e6067e8f85340122fe5d1e0 (patch) | |
tree | 76311a047138f0a71f1ede9b16035500e9092a8e /models | |
parent | b1bdbd7f948b0598e69355ba8312a50c74bc04a7 (diff) | |
download | gitea-dce17c86ac26f2110e6067e8f85340122fe5d1e0.tar.gz gitea-dce17c86ac26f2110e6067e8f85340122fe5d1e0.zip |
Almost done issue label #200
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go index 3651c46116..d0a65298b2 100644 --- a/models/issue.go +++ b/models/issue.go @@ -183,6 +183,13 @@ func GetIssues(uid, rid, pid, mid int64, page int, isClosed bool, labelIds, sort return issues, err } +type IssueStatus int + +const ( + IS_OPEN = iota + 1 + IS_CLOSE +) + // GetIssuesByLabel returns a list of issues by given label and repository. func GetIssuesByLabel(repoId int64, label string) ([]*Issue, error) { issues := make([]*Issue, 0, 10) |