Add issue update in stub.

This commit is contained in:
shimamoto
2013-06-26 14:55:22 +09:00
parent 31201c9453
commit 80bb24fdba
4 changed files with 80 additions and 6 deletions

View File

@@ -21,13 +21,18 @@ trait IssuesService {
} firstOption
else None
def getComment(owner: String, repository: String, issueId: Int) =
def getComments(owner: String, repository: String, issueId: Int) =
Query(IssueComments) filter { t =>
(t.userName is owner.bind) &&
(t.repositoryName is repository.bind) &&
(t.issueId is issueId.bind)
} list
def getComment(commentId: String) =
if (commentId forall (_.isDigit))
Query(IssueComments) filter (_.commentId is commentId.toInt.bind) firstOption
else None
/**
* Returns the count of the search result against issues.
*