(refs #179)Fetch from the source repository before pull request is referred.

This commit is contained in:
takezoe
2013-11-01 03:12:56 +09:00
parent 7e77c102b0
commit 60e1052d33
2 changed files with 13 additions and 11 deletions

View File

@@ -15,6 +15,9 @@ trait PullRequestService { self: IssuesService =>
}
}
def updateCommitIdTo(owner: String, repository: String, issueId: Int, commitIdTo: String): Unit =
Query(PullRequests).filter(_.byPrimaryKey(owner, repository, issueId)).map(_.commitIdTo).update(commitIdTo)
def getPullRequestCountGroupByUser(closed: Boolean, owner: String, repository: Option[String]): List[PullRequestCount] =
Query(PullRequests)
.innerJoin(Issues).on { (t1, t2) => t1.byPrimaryKey(t2.userName, t2.repositoryName, t2.issueId) }