diff options
Diffstat (limited to 'src/main/scala/com/getbootstrap/rorschach/github/util/package.scala')
-rw-r--r-- | src/main/scala/com/getbootstrap/rorschach/github/util/package.scala | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/main/scala/com/getbootstrap/rorschach/github/util/package.scala b/src/main/scala/com/getbootstrap/rorschach/github/util/package.scala index 9a2aa6e..6ebd77f 100644 --- a/src/main/scala/com/getbootstrap/rorschach/github/util/package.scala +++ b/src/main/scala/com/getbootstrap/rorschach/github/util/package.scala @@ -1,23 +1,22 @@ package com.getbootstrap.rorschach.github -import org.eclipse.egit.github.core._ +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) { + /*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: PullRequest) { - def number: PullRequestNumber = PullRequestNumber(pr.getNumber).get + /*implicit class RichPullRequest(pr: Pull) { + def prNumber: PullRequestNumber = PullRequestNumber(pr.number).get + def smart: SmartPullRequest = new SmartPullRequest(pr) + }*/ - def status_= (value: PullRequestStatus) { - pr.setState(value.Value) - } - def status = PullRequestStatus(pr.getState) - } } |