Welcome to mirror list, hosted at ThFree Co, Russian Federation.

package.scala « util « github « rorschach « getbootstrap « com « scala « main « src - github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ebd77fcb52f196870ad9ed414ddf8eaff749bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.getbootstrap.rorschach.github

import com.jcabi.github.{Issue,Pull}
import com.jcabi.github.Issue.{Smart=>SmartIssue}
import com.jcabi.github.Pull.{Smart=>SmartPullRequest}

package object util {
  /*implicit class RichRepository(repo: Repository) {
    def repositoryId: RepositoryId = new RepositoryId(repo.getOwner.getLogin, repo.getName)
  }*/
  implicit class RichPullRequestMarker(marker: PullRequestMarker) {
    def commitSha: CommitSha = new CommitSha(marker.getSha)
  }
  implicit class RichCommitFile(file: CommitFile) {
    def status: CommitFileStatus = CommitFileStatus(file.getStatus)
  }
  /*implicit class RichPullRequest(pr: Pull) {
    def prNumber: PullRequestNumber = PullRequestNumber(pr.number).get
    def smart: SmartPullRequest = new SmartPullRequest(pr)
  }*/

}