def fromGithub()

in app/models/gitlab/MergeRequest.scala [13:19]


  def fromGithub(status:String) = (status: @switch) match {
    case "open"=>opened
    case "closed"=>closed
    case _=>
      //this is kinda placeholder; should break in a nice obvious way if we need to add anything
      throw new NoSuchElementException(s"Did not recognise github status $status")
  }