aboutsummaryrefslogtreecommitdiff
path: root/bot/src
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-02-09 21:54:46 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-02-13 10:53:45 +0100
commit43f1d800b92241d86703b5518aab171e039fde4e (patch)
tree8bcf88b79312ac5cff3fe5d1504d72af3d2281d2 /bot/src
parent3f06fe9cc2debaacbb889e33c7339457fc5355cd (diff)
downloaddotty-43f1d800b92241d86703b5518aab171e039fde4e.tar.gz
dotty-43f1d800b92241d86703b5518aab171e039fde4e.tar.bz2
dotty-43f1d800b92241d86703b5518aab171e039fde4e.zip
Add test for unmarshalling github issue form JSON
Diffstat (limited to 'bot/src')
-rw-r--r--bot/src/dotty/tools/bot/model/Github.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/bot/src/dotty/tools/bot/model/Github.scala b/bot/src/dotty/tools/bot/model/Github.scala
new file mode 100644
index 000000000..c089f0cf2
--- /dev/null
+++ b/bot/src/dotty/tools/bot/model/Github.scala
@@ -0,0 +1,15 @@
+package dotty.tools.bot
+package model
+
+object Github {
+ case class PullRequest(
+ url: String,
+ id: Long,
+ commits_url: String
+ )
+
+ case class Issue(
+ number: Int,
+ pull_request: Option[PullRequest]
+ )
+}