mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 03:55:58 +01:00
Implemented the reference of the issue.
This commit is contained in:
@@ -8,6 +8,15 @@ import Q.interpolation
|
||||
import model._
|
||||
|
||||
trait IssuesService {
|
||||
def getIssue(owner: String, repository: String, issueId: String) =
|
||||
if (issueId forall (_.isDigit))
|
||||
Query(Issues) filter { t =>
|
||||
(t.userName is owner.bind) &&
|
||||
(t.repositoryName is repository.bind) &&
|
||||
(t.issueId is issueId.toInt.bind)
|
||||
} firstOption
|
||||
else None
|
||||
|
||||
def saveIssue(owner: String, repository: String, loginUser: String,
|
||||
title: String, content: Option[String]) =
|
||||
// next id number
|
||||
|
||||
Reference in New Issue
Block a user