mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 02:56:08 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user