Implemented the issue list.

This commit is contained in:
shimamoto
2013-06-21 21:12:58 +09:00
parent 4d4e0c8487
commit fb51210ccc
3 changed files with 27 additions and 13 deletions

View File

@@ -17,6 +17,15 @@ trait IssuesService {
} firstOption
else None
def searchIssue(owner: String, repository: String,
// TODO It is better to have a DTO
closed: Boolean) =
Query(Issues) filter { t =>
(t.userName is owner.bind) &&
(t.repositoryName is repository.bind) &&
(t.closed is closed.bind)
} list
def saveIssue(owner: String, repository: String, loginUser: String,
title: String, content: Option[String]) =
// next id number