Merge remote-tracking branch 'origin/master'

This commit is contained in:
takezoe
2013-06-26 15:59:30 +09:00
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.
*