diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-06 17:18:26 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-02-13 10:53:45 +0100 |
commit | 3f06fe9cc2debaacbb889e33c7339457fc5355cd (patch) | |
tree | a9d67a74543e17de42cff6f75cd57020000487f8 /bot/src/dotty/tools/bot/BotServer.scala | |
parent | 8bdc91f7a5fc3efd93b6be255ec1bfb83787c69b (diff) | |
download | dotty-3f06fe9cc2debaacbb889e33c7339457fc5355cd.tar.gz dotty-3f06fe9cc2debaacbb889e33c7339457fc5355cd.tar.bz2 dotty-3f06fe9cc2debaacbb889e33c7339457fc5355cd.zip |
Add initial steps to dotty-bot
This PR will add a bot whose first purpose is to check the CLA of
contributing PRs. It improves on the old bot in that it checks each
commit individually, and doesn't get upset about 100+ commits.
It would be fun to do this PR with you @OlivierBlanvillain, feel free
to provide feedback/comments and refactor as you like
Diffstat (limited to 'bot/src/dotty/tools/bot/BotServer.scala')
-rw-r--r-- | bot/src/dotty/tools/bot/BotServer.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bot/src/dotty/tools/bot/BotServer.scala b/bot/src/dotty/tools/bot/BotServer.scala new file mode 100644 index 000000000..5ce8a83e7 --- /dev/null +++ b/bot/src/dotty/tools/bot/BotServer.scala @@ -0,0 +1,18 @@ +package dotty.tools.bot + +import org.http4s.server.{ Server, ServerApp } +import org.http4s.server.blaze._ + +import scalaz.concurrent.Task + +object Main extends ServerApp with PullRequestService { + + /** Services mounted to the server */ + final val services = prService + + override def server(args: List[String]): Task[Server] = + BlazeBuilder + .bindHttp(8080, "localhost") + .mountService(services, "/api") + .start +} |