diff --git a/.travis.yml b/.travis.yml index 3f3a382..358a276 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,3 +15,5 @@ scala: - 2.10.1 - 2.10.0 - 2.9.3 +script: + - sbt ++TRAVIS_SCALA_VERSION test diff --git a/src/main/scala/statuses.scala b/src/main/scala/statuses.scala index b496e1e..8fe19af 100644 --- a/src/main/scala/statuses.scala +++ b/src/main/scala/statuses.scala @@ -31,17 +31,20 @@ trait RepoStatuses { self: RepoRequests => case class StatusBuilder( state: Status.State, _targetUrl: Option[String] = None, - _desc: Option[String] = None) + _desc: Option[String] = None, + _context: Option[String] = None) extends Client.Completion { def targetUrl(target: String) = copy(_targetUrl = Some(target)) def desc(d: String) = copy(_desc = Some(d)) + def context(c: String) = copy(_context = Some(c)) override def apply[T](handler: Client.Handler[T]) = request(base.POST << pmap)(handler) private def pmap = compact(render(("state" -> state.value) ~ ("target_url" -> _targetUrl) ~ - ("description" -> _desc))) + ("description" -> _desc) ~ + ("context" -> _context))) } /** http://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref */