diff --git a/src/main/scala/service/IssuesService.scala b/src/main/scala/service/IssuesService.scala index dd95b0c..5ac69f2 100644 --- a/src/main/scala/service/IssuesService.scala +++ b/src/main/scala/service/IssuesService.scala @@ -203,6 +203,12 @@ } .update (title, content, currentDate) + def updateAssignedUserName(owner: String, repository: String, issueId: Int, assignedUserName: Option[String]) = + Issues.filter (_.byPrimaryKey(owner, repository, issueId)).map(_.assignedUserName?).update (assignedUserName) + + def updateMilestoneId(owner: String, repository: String, issueId: Int, milestoneId: Option[Int]) = + Issues.filter (_.byPrimaryKey(owner, repository, issueId)).map(_.milestoneId?).update (milestoneId) + def updateComment(commentId: Int, content: String) = IssueComments .filter (_.byPrimaryKey(commentId))