trait PullRequestService extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PullRequestService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def createPullRequest(originRepository: RepositoryInfo, issueId: Int, originBranch: String, requestUserName: String, requestRepositoryName: String, requestBranch: String, commitIdFrom: String, commitIdTo: String, isDraft: Boolean, loginAccount: Account, settings: SystemSettings)(implicit s: (blockingApi)#Session, context: Context): Unit
  2. def getPullRequest(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): Option[(Issue, PullRequest)]
  3. def getPullRequestByRequestCommit(userName: String, repositoryName: String, toBranch: String, fromBranch: String, commitId: String)(implicit s: (blockingApi)#Session): Option[(PullRequest, Issue)]
  4. def getPullRequestComments(userName: String, repositoryName: String, issueId: Int, commits: Seq[CommitInfo])(implicit s: (blockingApi)#Session): Seq[Comment]
  5. def getPullRequestCommitFromTo(originRepository: RepositoryInfo, forkedRepository: RepositoryInfo, originId: String, forkedId: String): (Option[ObjectId], Option[ObjectId])
  6. def getPullRequestCountGroupByUser(closed: Boolean, owner: Option[String], repository: Option[String])(implicit s: (blockingApi)#Session): List[PullRequestCount]
  7. def getPullRequestFromBranch(userName: String, repositoryName: String, branch: String, defaultBranch: String)(implicit s: (blockingApi)#Session): Option[(PullRequest, Issue)]

    for repository viewer.

    for repository viewer. 1. find pull request from branch to other branch on same repository

    1. return if exists pull request to defaultBranch 2. return if exists pull request to other branch 2. return None
  8. def getPullRequestsByBranch(userName: String, repositoryName: String, branch: String, closed: Option[Boolean])(implicit s: (blockingApi)#Session): List[PullRequest]
  9. def getPullRequestsByRequest(userName: String, repositoryName: String, branch: String, closed: Option[Boolean])(implicit s: (blockingApi)#Session): List[PullRequest]
  10. def getRequestCompareInfo(userName: String, repositoryName: String, branch: String, requestUserName: String, requestRepositoryName: String, requestCommitId: String): (Seq[Seq[CommitInfo]], Seq[DiffInfo])
  11. def markMergeAndClosePullRequest(userName: String, owner: String, repository: String, pull: PullRequest)(implicit s: (blockingApi)#Session): Unit
  12. def parseCompareIdentifier(value: String, defaultOwner: String): (String, String)

    Parses branch identifier and extracts owner and branch name as tuple.

    Parses branch identifier and extracts owner and branch name as tuple.

    - "owner:branch" to ("owner", "branch") - "branch" to ("defaultOwner", "branch")

  13. def updateBaseBranch(owner: String, repository: String, issueId: Int, baseBranch: String, commitIdTo: String)(implicit s: (blockingApi)#Session): Unit
  14. def updateCommitId(owner: String, repository: String, issueId: Int, commitIdTo: String, commitIdFrom: String)(implicit s: (blockingApi)#Session): Unit
  15. def updateDraftToPullRequest(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): Unit
  16. def updatePullRequests(owner: String, repository: String, branch: String, pusherAccount: Account, action: String, settings: SystemSettings)(implicit s: (blockingApi)#Session, c: Context): Unit

    Fetch pull request contents into refs/pull/${issueId}/head and update pull request table.

  17. def updatePullRequestsByApi(repository: RepositoryInfo, issueId: Int, loginAccount: Account, settings: SystemSettings, title: Option[String], body: Option[String], state: Option[String], base: Option[String])(implicit s: (blockingApi)#Session, c: Context): Unit