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

github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/com/getbootstrap/rorschach/github/implicits/package.scala')
-rw-r--r--src/main/scala/com/getbootstrap/rorschach/github/implicits/package.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/scala/com/getbootstrap/rorschach/github/implicits/package.scala b/src/main/scala/com/getbootstrap/rorschach/github/implicits/package.scala
new file mode 100644
index 0000000..50fa44f
--- /dev/null
+++ b/src/main/scala/com/getbootstrap/rorschach/github/implicits/package.scala
@@ -0,0 +1,18 @@
+package com.getbootstrap.rorschach.github
+
+import com.jcabi.github.{CommitsComparison,Issue,Pull}
+import com.jcabi.github.CommitsComparison.{Smart=>SmartCommitsComparison}
+import com.jcabi.github.Issue.{Smart=>SmartIssue}
+import com.jcabi.github.Pull.{Smart=>SmartPull}
+
+package object implicits {
+ implicit class RichIssue(issue: Issue) {
+ def smart: SmartIssue = new SmartIssue(issue)
+ }
+ implicit class RichCommitsComparison(comparison: CommitsComparison) {
+ def smart: SmartCommitsComparison = new SmartCommitsComparison(comparison)
+ }
+ implicit class RichPull(pull: Pull) {
+ def smart: SmartPull = new SmartPull(pull)
+ }
+}